fix: Use correct Authentik API endpoint for readiness check

Changed from /api/v3/core/tenants/ to /api/v3/flows/instances/
which returns proper JSON instead of 404 HTML during initialization.
This commit is contained in:
Pieter 2026-01-14 13:47:17 +01:00
parent 64e76036b2
commit 325c9e6cf8

View file

@ -9,7 +9,7 @@
shell: | shell: |
i=1 i=1
while [ $i -le 30 ]; do while [ $i -le 30 ]; do
if docker exec authentik-server curl -sf -H "Authorization: Bearer {{ authentik_api_token }}" http://localhost:9000/api/v3/core/tenants/ > /dev/null 2>&1; then if docker exec authentik-server curl -sf -H "Authorization: Bearer {{ authentik_api_token }}" http://localhost:9000/api/v3/flows/instances/ > /dev/null 2>&1; then
echo "Authentik API is ready" echo "Authentik API is ready"
exit 0 exit 0
fi fi