Update nginx role

This commit is contained in:
Alexander Dietrich 2020-03-23 20:43:06 +01:00
parent 1b9aa00d92
commit bbb7c76eef
9 changed files with 46 additions and 17 deletions
roles/nginx/files/snippets

View file

@ -1,2 +1,4 @@
add_header Strict-Transport-Security "max-age=31536000";
add_header Expect-CT "max-age=86400, enforce" always;
add_header Strict-Transport-Security "max-age=31536000" always;
proxy_hide_header Expect-CT;
proxy_hide_header Strict-Transport-Security;

View file

@ -1,7 +1,7 @@
add_header Referrer-Policy same-origin;
add_header X-Content-Type-Options nosniff;
add_header X-Frame-Options sameorigin;
add_header X-XSS-Protection "1; mode=block";
add_header Referrer-Policy same-origin always;
add_header X-Content-Type-Options nosniff always;
add_header X-Frame-Options sameorigin always;
add_header X-XSS-Protection "1; mode=block" always;
proxy_hide_header Referrer-Policy;
proxy_hide_header X-Content-Type-Options;
proxy_hide_header X-Frame-Options;