This commit is contained in:
2023-07-08 22:50:45 -05:00
parent 076969e1c2
commit 39cd66be54
2 changed files with 11 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
VERS='4.9.5-07062023'
VERS='4.9.6-07062023'
noheader=' service status-check nightlyrephp7.3-fpm,new backup report check checkcerts gitea update-nodes copynpmcerts singleservercheck update-dyndns '
CERT_DAEMON='/snap/bin/certbot'

View File

@@ -286,6 +286,7 @@ NEWSITE(){
SECURE=no
elif [[ ${SECURE} =~ ^[Yy]$ ]]; then
SECURE=yes
else
SECURE=no
fi
@@ -333,8 +334,15 @@ NEWSITE(){
[ "${WEBSOCKET}" == "yes" ] && WEBSOCKET="include conf.d\/include\/websocket-support.conf;" || WEBSOCKET=""
[ "${HSTS}" == "yes" ] && HSTS="include conf.d\/include\/hsts-support.conf;" || HSTS=""
[ "${EXPLOITS}" == "yes" ] && EXPLOITS="include conf.d\/include\/block-exploits.conf;" || EXPLOITS=""
[ "${SECURE}" == "yes" ] && SECURE="include conf.d\/include\/secure-access.conf;" || SECURE=""
if [ "${SECURE}" == "yes" ]; then
SECURE="include conf.d\/include\/secure-access.conf;"
ssh root@${NM_SINGLESRVR_IP['WEB']} sed -ie "/domain: # Proxies only requiring username and password/a ~~~ - \"${MAIN_SITE}\"" ${NM_DOCKER_COMPOSE_LOC['authelia']}/config/configuration.yml
ssh root@${NM_SINGLESRVR_IP['WEB']} sed -i "s/~~~/ /g" ${NM_DOCKER_COMPOSE_LOC['authelia']}/config/configuration.yml
else
SECURE=""
fi
######################################### LOCAL
if [ "${SITE_TYPE}" = "local" ]; then