mirror of
https://github.com/mtan93/install-nextcloud.git
synced 2026-02-03 06:03:24 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user