Commit 4e95a5fe authored by jon r's avatar jon r

Add Referrer-Policy to nginx.conf

This is needed for newer Nextcloud versions, supposedly from v15 on.

Also see:

- https://help.nextcloud.com/t/solved-referrer-policy-and-content-security-policy-broken-on-nginx-only-setup/49212/9

This is also reported on /settings/admin/overview if not present.
parent ad44354d
......@@ -20,6 +20,7 @@ http {
add_header X-Robots-Tag none;
add_header X-Download-Options noopen;
add_header X-Permitted-Cross-Domain-Policies none;
add_header Referrer-Policy no-referrer;
root /var/www/html;
......@@ -92,6 +93,7 @@ http {
add_header X-Robots-Tag none;
add_header X-Download-Options noopen;
add_header X-Permitted-Cross-Domain-Policies none;
add_header Referrer-Policy no-referrer;
# Optional: Don't log access to assets
access_log off;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment