Update sites.inc

This commit is contained in:
2023-11-14 18:20:30 -06:00
parent 90b6fbe2fa
commit 588727d223

View File

@@ -585,7 +585,7 @@ SITEINFO(){
fi
#twofacline=$(echo "${autheliaconfig}" | grep -Fn two_factor | sort | tail -n1)
if [ "$(echo "${siteconfig}" | grep include/proxy.conf)" != "" ] || [ "$(echo "${siteconfig}" | grep proxy_pass)" != "" ]; then
type='Proxy'
SITE_TYPE='Proxy'
if [ "$(echo "${siteconfig}" | grep include/proxy.conf)" != "" ]; then
PROXYHOST=$(echo "${siteconfig}" | grep 'set $server')
PROXYHOST=${PROXYHOST#*\"}; PROXYHOST=${PROXYHOST%\"*}
@@ -598,7 +598,7 @@ SITEINFO(){
PROXYHOST_FULL="[ custom proxy_pass ]"
fi
else
type='HTTP'
SITE_TYPE='HTTP'
PROXYHOST_FULL=''
fi