update
This commit is contained in:
parent
a16316979c
commit
a2929be104
6 changed files with 43 additions and 10 deletions
|
|
@ -1,15 +1,12 @@
|
|||
server_tokens off;
|
||||
## Don't show the nginx version number, a security best practice
|
||||
|
||||
add_header Referrer-Policy origin-when-cross-origin always;
|
||||
add_header X-Frame-Options SAMEORIGIN;
|
||||
add_header X-Content-Type-Options nosniff;
|
||||
#add_header X-XSS-Protection "1; mode=block" always;
|
||||
add_header X-XSS-Protection "0";
|
||||
server_tokens off;
|
||||
|
||||
#more_clear_headers 'X-Powered-By';
|
||||
add_header Referrer-Policy strict-origin-when-cross-origin always;
|
||||
add_header X-Frame-Options SAMEORIGIN always;
|
||||
add_header X-Content-Type-Options nosniff always;
|
||||
add_header X-XSS-Protection "0" always;
|
||||
|
||||
# Redirect `example.com.` to `example.com`
|
||||
if ($http_host ~ "\.$" ){
|
||||
rewrite ^(.*) $scheme://$host$1 permanent;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue