roles/nginx: Always set HSTS header

nginx 1.7.5 allows us to always set HTTP headers:

See: http://mailman.nginx.org/pipermail/nginx-announce/2014/000145.html

Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
Alan Orth 2015-01-24 12:40:48 +03:00
parent c3bc6d949d
commit 7457ac3b93
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -32,5 +32,5 @@
spdy_headers_comp 6;
# Enable this if you want HSTS (recommended, but be careful)
add_header Strict-Transport-Security max-age=15768000;
add_header Strict-Transport-Security max-age=15768000 always;