Switch to https using Caddy proxy.

This commit is contained in:
2026-01-12 12:06:43 +02:00
parent 3f7a2d2d61
commit f395e5ac6f
3 changed files with 43 additions and 10 deletions
+19
View File
@@ -0,0 +1,19 @@
# HTTP site: redirect everything to HTTPS
http://localhost {
redir https://{host}{uri} permanent
}
# HTTPS site
https://localhost {
reverse_proxy web:80
tls internal
# Optional: security headers (defense-in-depth)
header {
X-Content-Type-Options "nosniff"
X-Frame-Options "DENY"
Referrer-Policy "no-referrer"
}
}