From 1dfa4d9f329bbd429a83e9abf1857e36efe5bf67 Mon Sep 17 00:00:00 2001 From: hsiegeln <37154749+hsiegeln@users.noreply.github.com> Date: Tue, 7 Apr 2026 00:02:51 +0200 Subject: [PATCH] fix: use localhost for Logto ADMIN_ENDPOINT Logto calls ADMIN_ENDPOINT internally for OIDC discovery. Using PUBLIC_HOST resolved to the host machine where Traefik now owns port 3002, causing a routing loop. localhost resolves inside the container directly. Co-Authored-By: Claude Opus 4.6 (1M context) --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 2d2e1ae..57df218 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -67,7 +67,7 @@ services: environment: DB_URL: postgres://${POSTGRES_USER:-cameleer}:${POSTGRES_PASSWORD:-cameleer_dev}@postgres:5432/logto ENDPOINT: ${PUBLIC_PROTOCOL:-https}://${PUBLIC_HOST:-localhost} - ADMIN_ENDPOINT: http://${PUBLIC_HOST:-localhost}:3002 + ADMIN_ENDPOINT: http://localhost:3002 TRUST_PROXY_HEADER: 1 healthcheck: test: ["CMD-SHELL", "node -e \"require('http').get('http://localhost:3001/oidc/.well-known/openid-configuration', r => process.exit(r.statusCode === 200 ? 0 : 1)).on('error', () => process.exit(1))\""]