Switch to https using Caddy proxy.
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user