1
Fork 0

Add some headers

This commit is contained in:
Jake Howard 2024-03-03 21:25:07 +00:00
parent 506faeb9cf
commit b9e50b9e38
Signed by: jake
GPG Key ID: 57AFB45680EDD477
1 changed files with 6 additions and 0 deletions

View File

@ -40,6 +40,12 @@ server {
sub_filter_once on;
sub_filter_last_modified on;
# Set sensible headers
add_header X-Frame-Options "SAMEORIGIN" always;
add_header Referrer-Policy "no-referrer-when-downgrade" always;
add_header X-Content-Type-Options "nosniff" always;
add_header Content-Security-Policy "upgrade-insecure-requests; block-all-mixed-content" always;
# Expose WebDAV on a sub-path
location /.dav/ {
alias /srv/;