bugfix nginx config

This commit is contained in:
nativemad 2018-10-24 18:07:29 +02:00
parent db5d2307ba
commit 8ea03bd645
1 changed files with 2 additions and 2 deletions

4
nlvmi
View File

@ -199,10 +199,10 @@ function vmstart {
fi fi
fi fi
if [ -n $WPORT ] && [ -n $NGINXCONFIGPATH ]; then if [ -n $WPORT ] && [ -n $NGINXCONFIGPATH ]; then
echo "localtion /${array[1]}/ {" >$NGINXCONFIGPATH/${array[1]}.conf echo "location /${array[1]}/ {" >$NGINXCONFIGPATH/${array[1]}.conf
echo " proxy_pass http://${array[3]}:$WPORT/;" >>$NGINXCONFIGPATH/${array[1]}.conf echo " proxy_pass http://${array[3]}:$WPORT/;" >>$NGINXCONFIGPATH/${array[1]}.conf
echo " proxy_http_version 1.1;" >>$NGINXCONFIGPATH/${array[1]}.conf echo " proxy_http_version 1.1;" >>$NGINXCONFIGPATH/${array[1]}.conf
echo " proxy_set_header Upgrade $http_upgrade;" >>$NGINXCONFIGPATH/${array[1]}.conf echo " proxy_set_header Upgrade \$http_upgrade;" >>$NGINXCONFIGPATH/${array[1]}.conf
echo " proxy_set_header Connection \"Upgrade\";" >>$NGINXCONFIGPATH/${array[1]}.conf echo " proxy_set_header Connection \"Upgrade\";" >>$NGINXCONFIGPATH/${array[1]}.conf
echo " proxy_read_timeout 61s;" >>$NGINXCONFIGPATH/${array[1]}.conf echo " proxy_read_timeout 61s;" >>$NGINXCONFIGPATH/${array[1]}.conf
echo " proxy_buffering off;" >>$NGINXCONFIGPATH/${array[1]}.conf echo " proxy_buffering off;" >>$NGINXCONFIGPATH/${array[1]}.conf