Add some headers
This commit is contained in:
parent
506faeb9cf
commit
b9e50b9e38
|
@ -40,6 +40,12 @@ server {
|
||||||
sub_filter_once on;
|
sub_filter_once on;
|
||||||
sub_filter_last_modified 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
|
# Expose WebDAV on a sub-path
|
||||||
location /.dav/ {
|
location /.dav/ {
|
||||||
alias /srv/;
|
alias /srv/;
|
||||||
|
|
Loading…
Reference in New Issue