fix #547: secure VM deployment behind HTTPS proxy
This commit is contained in:
17
deploy/caddy/Caddyfile.template
Normal file
17
deploy/caddy/Caddyfile.template
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
email {{TLS_EMAIL}}
|
||||
}
|
||||
|
||||
{{PUBLIC_HOST}} {
|
||||
encode zstd gzip
|
||||
{{TLS_OPTIONS}}
|
||||
|
||||
header {
|
||||
Strict-Transport-Security "max-age=31536000; includeSubDomains"
|
||||
X-Content-Type-Options "nosniff"
|
||||
Referrer-Policy "same-origin"
|
||||
-Server
|
||||
}
|
||||
|
||||
reverse_proxy 127.0.0.1:{{APP_PORT}}
|
||||
}
|
||||
Reference in New Issue
Block a user