Fix domain configuration for separate portal and API domains
All checks were successful
Build and Push Docker Image / build (push) Successful in 1m59s

- Changed from single DOMAIN variable to PORTAL_DOMAIN and API_DOMAIN
- Matches nginx config: portal.monacousa.org, api.monacousa.org, studio.monacousa.org
- Updated docker-compose.yml to use correct domain variables with defaults
- Updated setup.sh to validate both domain variables
- Updated .env.example with separate domain configuration

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-26 11:34:25 +01:00
parent c92a7ee9b8
commit dec5e1950e
3 changed files with 16 additions and 9 deletions

View File

@@ -11,8 +11,14 @@
# ============================================
# DOMAIN CONFIGURATION (Required)
# ============================================
# Your domain name (without https://)
DOMAIN=portal.monacousa.org
# Portal domain (main web app)
PORTAL_DOMAIN=portal.monacousa.org
# API domain (Supabase API gateway)
API_DOMAIN=api.monacousa.org
# Studio domain (Supabase dashboard - optional)
STUDIO_DOMAIN=studio.monacousa.org
# ============================================
# DATABASE CONFIGURATION