Update sites.inc

This commit is contained in:
2023-11-12 13:49:47 -06:00
parent 7e82a8d038
commit fa2130940f

View File

@@ -634,7 +634,7 @@ SITEINFO(){
gosite=${NM_NGINXPATH[${RUN_NODE_TYPE}]}/sites-enabled
declare -A SITELIST
if [ "${gosite}" != "" ]; then
sites=$(find ${gosite}/h*.conf); i=0
sites=$(find ${gosite}/*.conf); i=0
if [ "${1}" == "" ] || ([ "${1}" == "edit" ] && [ "${2}" == "" ]); then
for sitefile in ${sites[@]}; do
site=${sitefile##*/}; site=${site/.conf/}
@@ -663,7 +663,7 @@ SITEINFO(){
port=${port##* }; port=${port%;*}
proxyhost="${scheme}://${server}:${port}"
else
proxyhost="custom Proxy_pass"
proxyhost="[ custom proxy_pass ]"
fi
else
type='HTTP'