diff --git a/files/nextcloud.nginx b/files/nextcloud.nginx index c31408a..79d8097 100644 --- a/files/nextcloud.nginx +++ b/files/nextcloud.nginx @@ -19,8 +19,8 @@ server { # Add headers to serve security related headers # Before enabling Strict-Transport-Security headers please read into this # topic first. - # add_header Strict-Transport-Security "max-age=15768000; - # includeSubDomains; preload;"; + add_header Strict-Transport-Security "max-age=15768000; + includeSubDomains; preload;"; add_header X-Content-Type-Options nosniff; add_header X-Frame-Options "SAMEORIGIN"; add_header X-XSS-Protection "1; mode=block"; diff --git a/files/nextcloud.sh b/files/nextcloud.sh deleted file mode 100755 index a9c4ae5..0000000 --- a/files/nextcloud.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/bash -ocpath='/var/www/nextcloud' -htuser='www-data' -htgroup='www-data' -rootuser='root' - -printf "Creating possible missing Directories\n" -mkdir -p $ocpath/data -mkdir -p $ocpath/assets -mkdir -p $ocpath/updater - -printf "chmod Files and Directories\n" -find ${ocpath}/ -type f -print0 | xargs -0 chmod 0640 -find ${ocpath}/ -type d -print0 | xargs -0 chmod 0750 -chmod 755 ${ocpath} - -printf "chown Directories\n" -chown -R ${rootuser}:${htgroup} ${ocpath}/ -chown -R ${htuser}:${htgroup} ${ocpath}/apps/ -chown -R ${htuser}:${htgroup} ${ocpath}/assets/ -chown -R ${htuser}:${htgroup} ${ocpath}/config/ -chown -R ${htuser}:${htgroup} ${ocpath}/data/ -chown -R ${htuser}:${htgroup} ${ocpath}/themes/ -chown -R ${htuser}:${htgroup} ${ocpath}/updater/ - -chmod +x ${ocpath}/occ - -printf "chmod/chown .htaccess\n" -if [ -f ${ocpath}/.htaccess ] - then - chmod 0644 ${ocpath}/.htaccess - chown ${rootuser}:${htgroup} ${ocpath}/.htaccess -fi -if [ -f ${ocpath}/data/.htaccess ] - then - chmod 0644 ${ocpath}/data/.htaccess - chown ${rootuser}:${htgroup} ${ocpath}/data/.htaccess -fi diff --git a/parameter/default/hostname b/parameter/default/hostname deleted file mode 100644 index 8d1c8b6..0000000 --- a/parameter/default/hostname +++ /dev/null @@ -1 +0,0 @@ - diff --git a/parameter/optional b/parameter/optional index ab7a591..995c43a 100644 --- a/parameter/optional +++ b/parameter/optional @@ -5,4 +5,3 @@ admin-user admin-pass uri version -hostname