Add 'nextcloud-nginx-adv.txt'

This commit is contained in:
Johan Koke 2022-05-27 16:37:11 +00:00
parent 0b220f6af0
commit 23cbaaca27
1 changed files with 14 additions and 0 deletions

14
nextcloud-nginx-adv.txt Normal file
View File

@ -0,0 +1,14 @@
add_header Referrer-Policy "no-referrer" always;
add_header X-Content-Type-Options "nosniff" always;
add_header X-Download-Options "noopen" always;
add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-Permitted-Cross-Domain-Policies "none" always;
add_header X-Robots-Tag "none" always;
add_header X-XSS-Protection "1; mode=block" always;
location /.well-known/carddav {
return 301 https://$host/remote.php/dav;
}
location /.well-known/caldav {
return 301 https://$host/remote.php/dav;
}