feat: read the identity domain from the environment
Compose hardcoded auth.dev, so rehearsing a deployment meant editing a tracked file and losing the change on the next pull. Read the three domain values from the environment with the default kept at auth.dev, so a plain docker compose up behaves exactly as before.
This commit is contained in:
parent
84b64310fe
commit
b984c8a90c
1 changed files with 3 additions and 3 deletions
|
|
@ -23,9 +23,9 @@ services:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
environment:
|
environment:
|
||||||
GO_LOOSE_ADDR: ":8080"
|
GO_LOOSE_ADDR: ":8080"
|
||||||
GO_LOOSE_BASE_URL: "https://auth.dev"
|
GO_LOOSE_BASE_URL: "${GO_LOOSE_BASE_URL:-https://auth.dev}"
|
||||||
GO_LOOSE_AUTH_DOMAIN: "auth.dev"
|
GO_LOOSE_AUTH_DOMAIN: "${GO_LOOSE_AUTH_DOMAIN:-auth.dev}"
|
||||||
GO_LOOSE_OIDC_REDIRECT_URL: "https://auth.dev/auth/callback"
|
GO_LOOSE_OIDC_REDIRECT_URL: "${GO_LOOSE_OIDC_REDIRECT_URL:-https://auth.dev/auth/callback}"
|
||||||
GO_LOOSE_DATABASE_URL: "postgres://goloose:goloose@postgres:5432/goloose?sslmode=disable"
|
GO_LOOSE_DATABASE_URL: "postgres://goloose:goloose@postgres:5432/goloose?sslmode=disable"
|
||||||
GO_LOOSE_SESSION_SECRET: "local-development-secret-change-me-now"
|
GO_LOOSE_SESSION_SECRET: "local-development-secret-change-me-now"
|
||||||
GO_LOOSE_DEV_LOGIN: "false"
|
GO_LOOSE_DEV_LOGIN: "false"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue