install_nextcloud.sh: adjust nginx vhost configuration (Secure http header).
This commit is contained in:
parent
af72080472
commit
38e5241ec7
@ -5096,9 +5096,14 @@ server {
|
|||||||
add_header X-Download-Options "noopen" always;
|
add_header X-Download-Options "noopen" always;
|
||||||
add_header X-Frame-Options "SAMEORIGIN" always;
|
add_header X-Frame-Options "SAMEORIGIN" always;
|
||||||
add_header X-Permitted-Cross-Domain-Policies "none" always;
|
add_header X-Permitted-Cross-Domain-Policies "none" always;
|
||||||
add_header X-Robots-Tag "none" always;
|
add_header X-Robots-Tag "noindex, nofollowi" always;
|
||||||
add_header X-XSS-Protection "1; mode=block" always;
|
add_header X-XSS-Protection "1; mode=block" always;
|
||||||
|
|
||||||
|
add_header X-Download-Options "noopen" always;
|
||||||
|
add_header Permissions-Policy "geolocation=(),microphone=(),camera=()" always;
|
||||||
|
add_header Feature-Policy "geolocation none;microphone none;camera none;" always;
|
||||||
|
add_header Set-Cookie "Path=/; HttpOnly; Secure" always;
|
||||||
|
|
||||||
# Remove X-Powered-By, which is an information leak
|
# Remove X-Powered-By, which is an information leak
|
||||||
fastcgi_hide_header X-Powered-By;
|
fastcgi_hide_header X-Powered-By;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user