refactor: derive GoTrue URLs from SITE_URL + SUPABASE_PUBLIC_URL — only 2 vars to change between local and prod

This commit is contained in:
Lago
2026-04-17 22:34:18 +02:00
parent 1b72c53f9b
commit 27c55f3e69
2 changed files with 7 additions and 5 deletions
+5 -3
View File
@@ -22,13 +22,15 @@ DASHBOARD_USERNAME=supabase
DASHBOARD_PASSWORD=mc-cars-studio
# ---- Public URLs (as seen from the browser) ----
# Only two URLs to change between local dev and production:
# Local: http://localhost:55580 / http://localhost:55521
# NAS: https://demo.lago.dev / https://demo.lago.dev
SITE_URL=http://localhost:55580
API_EXTERNAL_URL=http://localhost:55521
SUPABASE_PUBLIC_URL=http://localhost:55521
# ---- GoTrue (Auth) ----
GOTRUE_SITE_URL=http://localhost:55580
GOTRUE_URI_ALLOW_LIST=http://localhost:55580,http://localhost:55580/admin.html
# API_EXTERNAL_URL, GOTRUE_SITE_URL, GOTRUE_URI_ALLOW_LIST are derived
# automatically from SITE_URL / SUPABASE_PUBLIC_URL in docker-compose.yml.
DISABLE_SIGNUP=true
ENABLE_EMAIL_SIGNUP=true
ENABLE_EMAIL_AUTOCONFIRM=true