mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-05-30 15:30:08 +00:00
nc entrypoint: set windmill_admin_token and verify API auth against Windmill
Agent-Logs-Url: https://github.com/nextcloud/all-in-one/sessions/b977bac7-8311-4877-ba23-92438ed0a4fe Co-authored-by: szaimen <42591237+szaimen@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
56afde115d
commit
1ee3db8195
@@ -1101,6 +1101,11 @@ if [ "$WINDMILL_ENABLED" = 'yes' ]; then
|
||||
fi
|
||||
php /var/www/html/occ config:app:set windmill windmill_url --value="https://$NC_DOMAIN/windmill"
|
||||
php /var/www/html/occ config:app:set windmill windmill_instance_url --value="http://$WINDMILL_HOST:8000"
|
||||
php /var/www/html/occ config:app:set windmill windmill_admin_token --value="$WINDMILL_SECRET"
|
||||
if ! curl -sf -H "Authorization: Bearer $WINDMILL_SECRET" "http://$WINDMILL_HOST:8000/api/workspaces/list" > /dev/null; then
|
||||
echo "Failed to authenticate against Windmill API. Exiting!"
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
if [ "$REMOVE_DISABLED_APPS" = yes ] && [ -d "/var/www/html/custom_apps/windmill" ]; then
|
||||
php /var/www/html/occ app:remove windmill
|
||||
|
||||
Reference in New Issue
Block a user