-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8dfc7cc
commit 760d3c6
Showing
5 changed files
with
55 additions
and
124 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 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.