Add commented HSTS line to nginx site.conf
This commit is contained in:
parent
631dc15375
commit
474bc19904
1 changed files with 4 additions and 0 deletions
|
@ -20,6 +20,10 @@ server {
|
|||
add_header X-Content-Type-Options nosniff;
|
||||
add_header X-Frame-Options deny;
|
||||
add_header X-XSS-Protection "1; mode=block";
|
||||
|
||||
# Uncomment to enable HSTS
|
||||
# https://www.nginx.com/blog/http-strict-transport-security-hsts-and-nginx/
|
||||
#add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
|
||||
|
||||
include /etc/nginx/location.d/*.conf;
|
||||
try_files $uri $uri/ /index.php$is_args$args;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue