Update sites.inc

This commit is contained in:
2023-11-11 16:36:11 -06:00
parent 6498ca44be
commit f52b2605b2

View File

@@ -498,7 +498,7 @@ NEWPROXYSITE_CREATE(){
sed -i "/set \$forward_scheme/d" ${nginxconfig}; sed -i "/server {/a\\\tset \$forward_scheme ${PROXYSCHEME};" ${nginxconfig}
sed -i "/set \$server/d" ${nginxconfig}; sed -i "/set \$forward_scheme/a\\\tset \$server \"${PROXYHOST}\";" ${nginxconfig}
sed -i "/set \$port/d" ${nginxconfig}; sed -i "/set \$server/a\\\tset \$port ${PROXYPORT};" ${nginxconfig}
sed -i "/server_name/d" ${nginxconfig}; sed -i "/set \$port/a \\\n \\\tserver_name ${SERVERNAMES//,/ };" ${nginxconfig}
sed -i "/server_name/d" ${nginxconfig}; sed -i "/set \$port/a\\\n\\\tserver_name ${SERVERNAMES//,/ };" ${nginxconfig}
if [ "${SECURE}" != "-" ]; then
sed -i "s/#include conf.d\/include\/secure-access.conf/include conf.d\/include\/secure-access.conf/g" ${nginxconfig}