Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'update.sh')
-rwxr-xr-xupdate.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/update.sh b/update.sh
index 6bd0cb98..17d2e5d6 100755
--- a/update.sh
+++ b/update.sh
@@ -135,6 +135,15 @@ chmod 770 /var/www/ncp-web
apt-get install -y --no-install-recommends php-imagick imagemagick-6-common
}
+ # no-origin policy for enhanced privacy
+ grep -q "Referrer-Policy" /etc/apache2/apache2.conf || {
+ cat >> /etc/apache2/apache2.conf <<EOF
+<IfModule mod_headers.c>
+ Header always set Referrer-Policy "no-referrer"
+</IfModule>
+EOF
+ }
+
} # end - only live updates
exit 0