From 6be37a737e81b04d85d4ff99b4bc1549221a1c2e Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Fri, 6 Mar 2020 10:03:20 +0100 Subject: [PATCH] Added disable for https/ssl --- CMS/nextcloud/nginx-conf.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMS/nextcloud/nginx-conf.sh b/CMS/nextcloud/nginx-conf.sh index ffdc196..52282d1 100644 --- a/CMS/nextcloud/nginx-conf.sh +++ b/CMS/nextcloud/nginx-conf.sh @@ -5,6 +5,10 @@ nxtVer=18 wget -q -t7 "$repo"/raw/branch/"$branch"/CMS/nextcloud/Nginx-unconfigured -O /tmp/nginx-siteconf sed -i -e 's/PHPver/'$phpver'/g' -e 's/DOMAINname/'$domain'/' /tmp/nginx-siteconf sed -i -e "0,/^#ConfHere/s/\(^#Conf.*\)/#ConfHere1 /" -e '/#ConfHere1/ r /tmp/nginx-siteconf' -e '/#ConfHere/c\' /etc/nginx/sites-enabled/"$domain" +if [ $sslenable = 0 ]; then +sed -i -e '/fastcgi_param HTTPS/c\# fastcgi_param HTTPS' /etc/nginx/sites-enabled/"$domain" +fi + mkdir -p /var/www/"$domain"/html #Configuring PHP