Files
kmtnflower/.env.example

45 lines
2.5 KiB
Bash

# 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=""
# ── Mobile Build (Android — Flutter build container) ────────────────
# The build container runs alongside api/frontend in the same docker-compose project.
# The api container SSHes directly into the build container over the Docker network.
# Default is "build" (the docker-compose service name) — usually no override needed.
# KMTN_FLUTTER_BUILD_HOST=build
# Git repository URL for the Flutter project (cloned inside the build container)
# KMTN_FLUTTER_PROJECT_REPO_URL=http://192.168.1.74:30008/kfj001/kryz-go-flutter.git
# Project directory inside the build container (tilde expands to /home/vscode)
# KMTN_FLUTTER_PROJECT_DIR=~/kryz-go-flutter
# Glob pattern to find the built APK inside the build container
# KMTN_FLUTTER_APK_GLOB=~/kryz-go-flutter/build/app/outputs/flutter-apk/app-*.apk