-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #147 from picosh/am/light-refactor
Refactor pubsub->pipe
- Loading branch information
Showing
45 changed files
with
285 additions
and
397 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{ | ||
servers { | ||
metrics | ||
} | ||
} | ||
|
||
*.{$APP_DOMAIN}, {$APP_DOMAIN} { | ||
reverse_proxy web:3000 | ||
tls {$APP_EMAIL} { | ||
dns cloudflare {$CF_API_TOKEN} | ||
resolvers 1.1.1.1 | ||
} | ||
encode zstd gzip | ||
|
||
header { | ||
# disable FLoC tracking | ||
Permissions-Policy interest-cohort=() | ||
|
||
# enable HSTS | ||
Strict-Transport-Security max-age=31536000; | ||
|
||
# disable clients from sniffing the media type | ||
X-Content-Type-Options nosniff | ||
|
||
# clickjacking protection | ||
X-Frame-Options DENY | ||
|
||
# keep referrer data off of HTTP connections | ||
Referrer-Policy no-referrer-when-downgrade | ||
|
||
Content-Security-Policy "default-src 'self'; img-src * 'unsafe-inline'; style-src * 'unsafe-inline'" | ||
|
||
X-XSS-Protection "1; mode=block" | ||
} | ||
|
||
@caddymetrics { | ||
host {$APP_DOMAIN} | ||
path /_caddy/metrics | ||
} | ||
|
||
metrics @caddymetrics { | ||
disable_openmetrics | ||
} | ||
|
||
@appmetrics { | ||
host {$APP_DOMAIN} | ||
path /_app/metrics | ||
} | ||
|
||
handle @appmetrics { | ||
rewrite * /metrics | ||
reverse_proxy ssh:9222 | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package main | ||
|
||
import "github.com/picosh/pico/pipe" | ||
|
||
func main() { | ||
pipe.StartSshServer() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package main | ||
|
||
import "github.com/picosh/pico/pipe" | ||
|
||
func main() { | ||
pipe.StartApiServer() | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.