From 2f41476240f61ce5e7e98a75276e2328cef07e95 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 5 Aug 2019 11:33:54 +0200 Subject: [PATCH] nginx/configure/hsts --- in/public/web/nginx/configure.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/in/public/web/nginx/configure.rst b/in/public/web/nginx/configure.rst index 1d07d93..eadf4d2 100644 --- a/in/public/web/nginx/configure.rst +++ b/in/public/web/nginx/configure.rst @@ -46,6 +46,8 @@ Configure ssl_session_cache shared:ssl_session_cache:16m; ssl_session_timeout 15m; + add_header Strict-Transport-Security "max-age=31557600; includeSubDomains; preload"; + # Log access_log /var/log/nginx/access.log; @@ -57,7 +59,6 @@ Configure # Misc - add_header Strict-Transport-Security max-age=31557600; client_max_body_size 16m; index index.html; proxy_pass_request_body on;