-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
5 changed files
with
50 additions
and
52 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
# HTTPS/TLS is handled by Fly or on your domain (eg: Cloudflare) | ||
auto_https off | ||
admin off | ||
persist_config off | ||
|
||
log { | ||
output stdout | ||
format console | ||
} | ||
} | ||
|
||
{$DOMAIN_NAME}:80 { | ||
encode zstd gzip | ||
|
||
header / { | ||
# Enable HTTP Strict Transport Security (HSTS) | ||
Strict-Transport-Security "max-age=31536000;" | ||
# Enable cross-site filter (XSS) and tell browser to block detected attacks | ||
X-XSS-Protection "1; mode=block" | ||
# Disallow the site to be rendered within a frame (clickjacking protection) | ||
X-Frame-Options "DENY" | ||
# Prevent search engines from indexing | ||
X-Robots-Tag "noindex, nofollow" | ||
# Disallow sniffing of X-Content-Type-Options | ||
X-Content-Type-Options "nosniff" | ||
# Server name removing | ||
-Server | ||
# Remove X-Powered-By though this shouldn't be an issue, better opsec to remove | ||
-X-Powered-By | ||
# Remove Last-Modified because etag is the same and is as effective | ||
-Last-Modified | ||
} | ||
|
||
route /health { | ||
respond "Hello, world!" | ||
} | ||
|
||
reverse_proxy localhost:8080 { | ||
# Send the true remote IP to Rocket, so that vaultwarden can put this in the log | ||
@cloudflare header Cf-Connecting-Ip * | ||
header_up @cloudflare X-Real-IP {http.request.header.Cf-Connecting-Ip} | ||
header_up !@cloudflare X-Real-IP {remote_host} | ||
} | ||
} |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
gotify: cd /app && ./gotify-app | ||
caddy: /caddy.sh | ||
caddy: caddy run --config /Caddyfile | ||
crontab: supercronic /crontab |
This file was deleted.
Oops, something went wrong.