# KMountain Flower Radio Station — Environment Variables # Copy this file to .env and adjust values for your environment. Do NOT commit .env. # ── Database (db service) ───────────────────────────────────────────── POSTGRES_DB=kmountain POSTGRES_USER=postgres POSTGRES_PASSWORD=postgres # ── Backend API (api service) ───────────────────────────────────────── # Database connection string. Use postgresql+asyncpg for PostgreSQL, sqlite+aiosqlite for local dev without a DB. KMTN_DATABASE_URL=postgresql+asyncpg://postgres:postgres@db:5432/kmountain # JSON array of allowed CORS origins. # Dev: include localhost variants. Prod: your actual domain(s). KMTN_CORS_ORIGINS='["http://localhost:4200", "http://localhost"]' # Environment name. Set to "production" to disable the admin router. # KMTN_ENV=development # ── Frontend (frontend service) ─────────────────────────────────────── # Internal API target that nginx proxies /api/ requests to. # In Docker Compose this is the api service DNS name. API_UPSTREAM=http://api:8000 # Browser-facing API URL. Set this to control how the Angular app reaches the API. # "" (empty) — proxy mode: browser calls /api/* relative paths; nginx forwards to API_UPSTREAM. # "http://yourhost:8000" — direct mode: browser calls the API container directly (CORS required). # Use direct mode when an external ingress layer (e.g., TrueNAS middleware) breaks the nginx proxy chain. API_PUBLIC_URL=""