web: Add ENABLE_HSTS flag to disable strict-transport-security header
This commit is contained in:
committed by
GitHub
parent
f8560371f5
commit
0b2514101c
@@ -23,4 +23,6 @@ ssl_prefer_server_ciphers off;
|
||||
ssl_dhparam /defaults/ffdhe2048.txt;
|
||||
|
||||
# HSTS (ngx_http_headers_module is required) (63072000 seconds)
|
||||
{{ if .Env.ENABLE_HSTS | default "1" | toBool }}
|
||||
add_header Strict-Transport-Security "max-age=63072000" always;
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user