Files
2026-11-08 13:13:34 +03:00

32 lines
1.3 KiB
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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
# Per-replica API limits; total budget in track 1 is replicas × these values. Defaults match level 4.
API_CPUS=1.0
API_MEMORY=256M
POSTGRES_CPUS=1.0
POSTGRES_MEMORY=512M
DB_POOL_MIN=1
DB_POOL_MAX=10
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:<APP_VERSION>, shown as X-App-Version; scripts/rolling-update.sh sets it.
APP_VERSION=dev
LB_PORT=8080