# 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 APP_SHUTDOWN_TIMEOUT=5 APP_DRAIN_SECONDS=3 # Host ports of the load balancer (change to 8090/8405 to run next to another lab stack). LB_PORT=8080 STATS_PORT=8404 SESSION_TTL_SECONDS=3600 # Credentials are generated locally by: python scripts/init_secrets.py # File paths contain no secret values. DATABASE_URL_FILE=/run/secrets/database_url # Sessions: PostgreSQL is the source of truth, Valkey is a read-through cache. CACHE_URL=redis://valkey:6379/0 SESSION_CACHE_TTL_SECONDS=60 REVOCATION_SYNC_SECONDS=1 API_REPLICAS=2 IDEMPOTENCY_TTL_SECONDS=86400 PASSWORD_HASH_CONCURRENCY=4 DB_POOL_MIN=1 DB_POOL_MAX=10 DB_POOL_TIMEOUT_SECONDS=2 DB_STATEMENT_TIMEOUT_MS=3000 DB_REQUEST_TIMEOUT_SECONDS=4 # S3 (SeaweedFS). API reads its own limited keys from secret files. S3_ENDPOINT=http://s3:8333 S3_REGION=us-east-1 S3_BUCKET=messenger-attachments S3_ACCESS_KEY_ID_FILE=/run/secrets/s3_access_key_id S3_SECRET_ACCESS_KEY_FILE=/run/secrets/s3_secret_access_key S3_TIMEOUT_SECONDS=15 MAX_UPLOAD_BYTES=10485760 MAX_IMAGE_PIXELS=40000000 UPLOAD_MEMORY_BYTES=1048576 UPLOAD_CONCURRENCY=4 # Periodic reconciler service: cleans orphans and stale uploads older than the grace period. RECONCILE_INTERVAL_SECONDS=600 RECONCILE_GRACE_SECONDS=900