nginx/configure/hsts

This commit is contained in:
Marc Beninca 2019-08-05 11:33:54 +02:00
parent 0c3ea01f9e
commit 2f41476240

View file

@ -46,6 +46,8 @@ Configure
ssl_session_cache shared:ssl_session_cache:16m; ssl_session_cache shared:ssl_session_cache:16m;
ssl_session_timeout 15m; ssl_session_timeout 15m;
add_header Strict-Transport-Security "max-age=31557600; includeSubDomains; preload";
# Log # Log
access_log /var/log/nginx/access.log; access_log /var/log/nginx/access.log;
@ -57,7 +59,6 @@ Configure
# Misc # Misc
add_header Strict-Transport-Security max-age=31557600;
client_max_body_size 16m; client_max_body_size 16m;
index index.html; index index.html;
proxy_pass_request_body on; proxy_pass_request_body on;