Mods to header feature policy

add_header Feature-Policy "accelerometer 'none'; autoplay 'self'; geolocation 'none'; midi 'none'; notifications 'self'; push 'self'; sync-xhr 'self'; microphone 'self'; camera 'self'; magnetometer 'none'; gyroscope 'none'; speaker 'self'; vibrate 'self'; fullscreen 'self'; payment 'none'; usb 'none'";
This commit is contained in:
rieger::CLOUD
2019-01-17 18:34:45 +01:00
committed by GitHub
parent 007e6feccc
commit 12614c253c

View File

@@ -3,10 +3,10 @@
# https://www.c-rieger.de
# https://github.com/riegercloud
# INSTALL-NEXTCLOUD.SH
# Version 7.0 (AMD64)
# Version 7.1 (AMD64)
# Nextcloud 15
# OpenSSL 1.1.1, TLSv1.3, NGINX 1.15.8 PHP 7.3
# January, 8th 2019
# January, 17th 2019
################################################
# Ubuntu 18.04 LTS AMD64 - Nextcloud 15
################################################
@@ -488,7 +488,7 @@ 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 "no-referrer" always;
add_header Feature-Policy "geolocation 'self'";
add_header Feature-Policy "accelerometer 'none'; autoplay 'self'; geolocation 'none'; midi 'none'; notifications 'self'; push 'self'; sync-xhr 'self'; microphone 'self'; camera 'self'; magnetometer 'none'; gyroscope 'none'; speaker 'self'; vibrate 'self'; fullscreen 'self'; payment 'none'; usb 'none'";
EOF
touch /etc/nginx/optimization.conf
cat <<EOF >/etc/nginx/optimization.conf