mirror of
https://github.com/mtan93/install-nextcloud.git
synced 2026-03-29 22:04:09 +01:00
Changes to /etc/nginx/header.conf
add_header Referrer-Policy "no-referrer" always;
This commit is contained in:
@@ -3,10 +3,12 @@
|
|||||||
# https://www.c-rieger.de
|
# https://www.c-rieger.de
|
||||||
# https://github.com/riegercloud
|
# https://github.com/riegercloud
|
||||||
# INSTALL-NEXTCLOUDARM64.SH
|
# INSTALL-NEXTCLOUDARM64.SH
|
||||||
# Version 4.0 ARM64
|
# Version 4.1 ARM64
|
||||||
# July, 26th, 2018
|
# changes to /etc/nginx/header.conf
|
||||||
|
# July, 27th, 2018
|
||||||
############################################
|
############################################
|
||||||
# Ubuntu 18.04 LTS ARM64 - Nextcloud 13.0.5
|
# Ubuntu 18.04 LTS ARM64 - Nextcloud 13.0.5
|
||||||
|
# ready for Nextcloud 14 already!
|
||||||
############################################
|
############################################
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
###global function to update and cleanup the environment
|
###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-Permitted-Cross-Domain-Policies none;
|
||||||
add_header X-Content-Type-Options "nosniff" always;
|
add_header X-Content-Type-Options "nosniff" always;
|
||||||
add_header X-XSS-Protection "1; mode=block" 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
|
EOF
|
||||||
touch /etc/nginx/optimization.conf
|
touch /etc/nginx/optimization.conf
|
||||||
cat <<EOF >/etc/nginx/optimization.conf
|
cat <<EOF >/etc/nginx/optimization.conf
|
||||||
|
|||||||
Reference in New Issue
Block a user