# Copy to .env only if you prefer a file; scripts/deploy.sh reads the same names # from the process environment. Never commit .env. # # Public HTTP port of the single entrypoint (Traefik). API tasks publish no ports. APP_PORT=8080 API_IMAGE=mtusi-messenger-lab3:3.0.0 # Two API replicas are declared in stack.yaml; override only for experiments. API_REPLICAS=2 # Bearer session lifetime; survives restarts because Valkey stores absolute expiry. SESSION_TTL_SECONDS=3600 # Sessions live in Valkey. The former SESSION_STORE=postgres is rejected at start. SESSION_STORE=redis # Swarm secret names are created by scripts/deploy.*; values live in secrets/. DATABASE_URL_FILE=/run/secrets/database_url CACHE_URL_FILE=/run/secrets/cache_url # Idempotency-Key retention is fixed by the contract at 24 hours; no env knob.