roles/nginx: Fix HSTS header in vhost config
We always want to add the header, not add a header with value "always"! Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
parent
f9ea01ba8f
commit
caec2440bb
@ -71,7 +71,7 @@ server {
|
|||||||
# Enable this if you want HSTS (recommended, but be careful)
|
# Enable this if you want HSTS (recommended, but be careful)
|
||||||
# Include all subdomains and indicate to Google that we want this pre-loaded in Chrome's HSTS store
|
# Include all subdomains and indicate to Google that we want this pre-loaded in Chrome's HSTS store
|
||||||
# See: https://hstspreload.appspot.com/
|
# See: https://hstspreload.appspot.com/
|
||||||
add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload; always";
|
add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;" always;
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
include extra-security.conf;
|
include extra-security.conf;
|
||||||
|
Loading…
Reference in New Issue
Block a user