Send HSTS on every Caddy site

Browsers will use HTTPS for each site for a year. includeSubDomains is
left off so hosts not served by this Caddy are unaffected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Phil
2026-10-31 17:47:21 -06:00
co-authored by Claude Opus 5.5
parent a1a79af7d5
commit cab61b78e7
+29
View File
@@ -1,42 +1,58 @@
# Tell browsers to always use HTTPS for each site for a year. No
# includeSubDomains, so hosts not served here are unaffected.
(hsts) {
header Strict-Transport-Security "max-age=31536000"
}
{{ subdomains.pocketid }} { {{ subdomains.pocketid }} {
import hsts
reverse_proxy pocket-id:1411 reverse_proxy pocket-id:1411
} }
paper.thesatelliteoflove.com { paper.thesatelliteoflove.com {
import hsts
reverse_proxy paperlessngx-webserver-1:8000 reverse_proxy paperlessngx-webserver-1:8000
} }
cal.thesatelliteoflove.com { cal.thesatelliteoflove.com {
import hsts
redir /.well-known/caldav /dav.php 302 redir /.well-known/caldav /dav.php 302
redir /.well-known/carddav /dav.php 302 redir /.well-known/carddav /dav.php 302
reverse_proxy baikal-baikal-1:80 reverse_proxy baikal-baikal-1:80
} }
{{ subdomains.books }} { {{ subdomains.books }} {
import hsts
reverse_proxy kavita:5000 reverse_proxy kavita:5000
} }
audio.thesatelliteoflove.com { audio.thesatelliteoflove.com {
import hsts
reverse_proxy audiobookshelf-audiobookshelf-1:80 reverse_proxy audiobookshelf-audiobookshelf-1:80
} }
loclog.thesatelliteoflove.com { loclog.thesatelliteoflove.com {
import hsts
reverse_proxy dawarich_app:3000 reverse_proxy dawarich_app:3000
} }
watcher.thesatelliteoflove.com { watcher.thesatelliteoflove.com {
import hsts
reverse_proxy changedetection:5000 reverse_proxy changedetection:5000
} }
snippets.thesatelliteoflove.com { snippets.thesatelliteoflove.com {
import hsts
reverse_proxy bytestash:5000 reverse_proxy bytestash:5000
} }
git.thesatelliteoflove.com { git.thesatelliteoflove.com {
import hsts
reverse_proxy gitea:3000 reverse_proxy gitea:3000
} }
thesatelliteoflove.com { thesatelliteoflove.com {
import hsts
# WebFinger for phil@ serves two readers: the fediverse (GoToSocial's account # WebFinger for phil@ serves two readers: the fediverse (GoToSocial's account
# domain is this apex) and Tailscale, which finds the tailnet's login # domain is this apex) and Tailscale, which finds the tailnet's login
# provider through the OpenID issuer link. # provider through the OpenID issuer link.
@@ -56,27 +72,33 @@ thesatelliteoflove.com {
} }
bookmarks.thesatelliteoflove.com { bookmarks.thesatelliteoflove.com {
import hsts
reverse_proxy hoarder-web-1:3000 reverse_proxy hoarder-web-1:3000
} }
social.thesatelliteoflove.com { social.thesatelliteoflove.com {
import hsts
reverse_proxy gotosocial:8080 reverse_proxy gotosocial:8080
} }
models.thesatelliteoflove.com { models.thesatelliteoflove.com {
import hsts
reverse_proxy manyfold-app-1:3214 reverse_proxy manyfold-app-1:3214
} }
gotify.thesatelliteoflove.com { gotify.thesatelliteoflove.com {
import hsts
reverse_proxy gotify:80 reverse_proxy gotify:80
} }
gotify-assistant.thesatelliteoflove.com { gotify-assistant.thesatelliteoflove.com {
import hsts
reverse_proxy igotify-assistant:8080 reverse_proxy igotify-assistant:8080
} }
pdg.thesatelliteoflove.com { pdg.thesatelliteoflove.com {
import hsts
root * /srv/pdg root * /srv/pdg
try_files {path} {path}.html {path}/ =404 try_files {path} {path}.html {path}/ =404
file_server file_server
@@ -89,32 +111,39 @@ pdg.thesatelliteoflove.com {
} }
starpunk.thesatelliteoflove.com { starpunk.thesatelliteoflove.com {
import hsts
reverse_proxy starpunk:8000 reverse_proxy starpunk:8000
} }
repair.nerder.land { repair.nerder.land {
import hsts
root * /srv/repair root * /srv/repair
file_server file_server
} }
nerder.land { nerder.land {
import hsts
root * /srv/nerderland root * /srv/nerderland
file_server file_server
} }
forms.nerder.land { forms.nerder.land {
import hsts
reverse_proxy heyform-heyform-1:9157 reverse_proxy heyform-heyform-1:9157
} }
listmonk.nerder.land { listmonk.nerder.land {
import hsts
reverse_proxy listmonk:9000 reverse_proxy listmonk:9000
} }
repaircafe.nerder.land { repaircafe.nerder.land {
import hsts
redir /volunteer-signup https://listmonk.nerder.land/subscription/form 301 redir /volunteer-signup https://listmonk.nerder.land/subscription/form 301
} }
gokapi.thesatelliteoflove.com { gokapi.thesatelliteoflove.com {
import hsts
reverse_proxy gokapi:53842 reverse_proxy gokapi:53842
} }