Changes to /etc/nginx/header.conf

add_header Referrer-Policy "no-referrer" always;
This commit is contained in:
rieger::CLOUD
2018-07-27 07:12:33 +02:00
committed by GitHub
parent af1f11e955
commit b2f94c8b99

View File

@@ -3,10 +3,12 @@
# https://www.c-rieger.de
# https://github.com/riegercloud
# INSTALL-NEXTCLOUDARM64.SH
# Version 4.0 ARM64
# July, 26th, 2018
# Version 4.1 ARM64
# changes to /etc/nginx/header.conf
# July, 27th, 2018
############################################
# Ubuntu 18.04 LTS ARM64 - Nextcloud 13.0.5
# ready for Nextcloud 14 already!
############################################
#!/bin/bash
###global function to update and cleanup the environment
@@ -465,7 +467,7 @@ add_header X-Download-Options noopen;
add_header X-Permitted-Cross-Domain-Policies none;
add_header X-Content-Type-Options "nosniff" always;
add_header X-XSS-Protection "1; mode=block" always;
add_header Referrer-Policy "same-origin" always;
add_header Referrer-Policy "no-referrer" always;
EOF
touch /etc/nginx/optimization.conf
cat <<EOF >/etc/nginx/optimization.conf