Add some headers
This commit is contained in:
parent
506faeb9cf
commit
b9e50b9e38
1 changed files with 6 additions and 0 deletions
|
@ -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/;
|
||||
|
|
Loading…
Reference in a new issue