mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-05-30 15:30:08 +00:00
WIP: implementing windmill container changes
Agent-Logs-Url: https://github.com/nextcloud/all-in-one/sessions/6f198732-63c3-41b7-8b2e-1b5fa565ee21 Co-authored-by: szaimen <42591237+szaimen@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
8727df147d
commit
4b27d6954f
@@ -60,6 +60,16 @@ if [ -z "$ADDITIONAL_TRUSTED_DOMAIN" ]; then
|
||||
fi
|
||||
echo "$CADDYFILE" > /tmp/Caddyfile
|
||||
|
||||
# Add windmill site if windmill is enabled
|
||||
if [ "$WINDMILL_ENABLED" = "yes" ]; then
|
||||
cat >> /tmp/Caddyfile << 'WINDMILL_EOF'
|
||||
|
||||
https://{$NC_DOMAIN}:3100 {
|
||||
reverse_proxy {$WINDMILL_HOST}:8000
|
||||
}
|
||||
WINDMILL_EOF
|
||||
fi
|
||||
|
||||
# Fix the Caddyfile format
|
||||
caddy fmt --overwrite /tmp/Caddyfile
|
||||
|
||||
|
||||
@@ -1090,5 +1090,22 @@ else
|
||||
fi
|
||||
fi
|
||||
|
||||
# Windmill app
|
||||
if [ "$WINDMILL_ENABLED" = 'yes' ]; then
|
||||
if ! [ -d "/var/www/html/custom_apps/windmill" ]; then
|
||||
php /var/www/html/occ app:install windmill
|
||||
elif [ "$(php /var/www/html/occ config:app:get windmill enabled)" != "yes" ]; then
|
||||
php /var/www/html/occ app:enable windmill
|
||||
elif [ "$SKIP_UPDATE" != 1 ]; then
|
||||
php /var/www/html/occ app:update windmill
|
||||
fi
|
||||
php /var/www/html/occ config:app:set windmill windmill_url --value="https://$NC_DOMAIN:3100"
|
||||
php /var/www/html/occ config:app:set windmill windmill_instance_url --value="http://$WINDMILL_HOST:8000"
|
||||
else
|
||||
if [ "$REMOVE_DISABLED_APPS" = yes ] && [ -d "/var/www/html/custom_apps/windmill" ]; then
|
||||
php /var/www/html/occ app:remove windmill
|
||||
fi
|
||||
fi
|
||||
|
||||
# Remove the update skip file always
|
||||
rm -f "$NEXTCLOUD_DATA_DIR"/skip.update
|
||||
|
||||
Reference in New Issue
Block a user