# Copy to .env for your LOCAL synthetic test environment; never commit .env. # These are logical interface suggestions; map actual framework names in REPORT.md. APP_HOST=0.0.0.0 APP_PORT=8080 APP_ENV=lab SESSION_TTL_SECONDS=3600 # Not passed to containers: compose.yaml gives api/migrate DB_HOST/DB_USER/DB_NAME and # DB_PASSWORD_FILE=/run/secrets/postgres_password (Compose secret built from POSTGRES_PASSWORD below). # The app also accepts DATABASE_URL_FILE or DATABASE_URL instead. # Sessions live in PostgreSQL; no Redis/Valkey, CACHE_URL_FILE is unused. SESSION_STORE=postgres API_REPLICAS=2 IDEMPOTENCY_TTL_SECONDS=86400 # Pick your own local password. It reaches containers only as the postgres_password secret file. POSTGRES_USER=messenger POSTGRES_PASSWORD=change-me-locally POSTGRES_DB=messenger # SIGTERM: readiness 503 for DRAIN_SECONDS (> LB detection 3 s), then in-flight requests get # SHUTDOWN_TIMEOUT_SECONDS. Keep DRAIN + SHUTDOWN < stop_grace_period (10 s). DRAIN_SECONDS=4 SHUTDOWN_TIMEOUT_SECONDS=3 # Image tag messenger-lab3-app:, shown as X-App-Version; scripts/rolling-update.sh sets it. APP_VERSION=dev LB_PORT=8080