Initial version of instance control and snapshot triggering

This commit is contained in:
2026-05-07 08:45:55 -07:00
parent 5eb0416a47
commit acdb4840aa
12 changed files with 228 additions and 6 deletions

View File

@@ -65,6 +65,14 @@ for config_string in ${APP_CONFIGS[@]}; do
fulldomain="$subdomain.$ROOT_DOMAIN"
echo "$fulldomain {"
# config for maintenance mode
echo "@maintenanceModeActive file /maintenance/maintenance.on {"
echo " root /"
echo "}"
echo "handle @maintenanceModeActive {"
echo " respond \"We are performing a maintenance, come back later\" 503"
echo "}"
echo $body
echo "}"
@@ -76,6 +84,13 @@ for config_string in ${APP_CONFIGS[@]}; do
# domain with 'lldap'
if [ "$app" = "nassella" ]; then
echo "lldap.$subdomain.$ROOT_DOMAIN {"
# config for maintenance mode
echo "@maintenanceModeActive file /maintenance/maintenance.on {"
echo " root /"
echo "}"
echo "handle @maintenanceModeActive {"
echo " respond \"We are performing a maintenance, come back later\" 503"
echo "}"
echo " reverse_proxy nassella_lldap:17170"
echo "}"
fi