reverse: allow to disable hsts and headers

This commit is contained in:
root
2017-09-18 18:37:21 +02:00
parent 89cb674a37
commit 43b9cb8c41
4 changed files with 18 additions and 4 deletions

View File

@ -0,0 +1 @@
add_header Strict-Transport-Security "max-age=31536000";

View File

@ -6,5 +6,3 @@ ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:20m;
ssl_session_timeout 15m;
ssl_session_tickets off;
add_header Strict-Transport-Security "max-age=31536000";

View File

@ -17,6 +17,7 @@ server {
ssl_trusted_certificate /nginx/ssl/certificates/<frontend_domain>.chain.pem;
include /nginx/conf.d/ssl.conf;
include /nginx/conf.d/headers.conf;
include /nginx/conf.d/hsts.conf;
include /nginx/path.d/<frontend_domain>/*.conf;