mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-08-16 21:17:27 +00:00
reverse: allow to disable hsts and headers
This commit is contained in:
1
reverse/rootfs/nginx/conf.d/hsts.conf
Normal file
1
reverse/rootfs/nginx/conf.d/hsts.conf
Normal file
@@ -0,0 +1 @@
|
||||
add_header Strict-Transport-Security "max-age=31536000";
|
@@ -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";
|
||||
|
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user