feat: read the identity and application domains from the environment

Compose hardcoded auth.dev and guess.dev, which made a domain change a
tracked edit that the next pull would undo. Read both from the environment
with the defaults unchanged, following the FRONTEND_URL convention already
in this file.
This commit is contained in:
Daniel Noulet 2026-10-03 05:17:12 +02:00
parent 842f8b727e
commit 1ffe3393ab

View file

@ -38,8 +38,8 @@ services:
JWT_SECRET: local-development-secret-change-me-12345
FRONTEND_URL: ${FRONTEND_URL:-https://nmbs.guess.local}
APP_ENV: ${APP_ENV:-development}
GO_LOOSE_AUTH_DOMAIN: auth.dev
GO_LOOSE_APP_DOMAIN: guess.dev
GO_LOOSE_AUTH_DOMAIN: ${GO_LOOSE_AUTH_DOMAIN:-auth.dev}
GO_LOOSE_APP_DOMAIN: ${GO_LOOSE_APP_DOMAIN:-guess.dev}
GO_LOOSE_CA_FILE: /certs/local-ca.crt
GO_LOOSE_NMBS_CLIENT_ID: ${GO_LOOSE_NMBS_CLIENT_ID:-}
GO_LOOSE_NMBS_CLIENT_SECRET: ${GO_LOOSE_NMBS_CLIENT_SECRET:-}