forked from mtusi2026/mtusi2026lab2
26 lines
967 B
Bash
26 lines
967 B
Bash
# 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
|
|
LOG_LEVEL=info
|
|
# Grace period for in-flight requests after SIGTERM; must stay below the 10s budget.
|
|
SHUTDOWN_GRACE_SECONDS=8
|
|
# Opaque cursor signing key. Generated per process when unset.
|
|
CURSOR_SECRET=local-lab2-cursor-secret-change-me
|
|
MAX_BODY_BYTES=1048576
|
|
DEFAULT_PAGE_LIMIT=50
|
|
# Session TTL in seconds (default 3600; smoke test requires >= 300).
|
|
SESSION_TTL_SECONDS=3600
|
|
# Session store: postgres or redis. Redis is required for grade 4.
|
|
SESSION_STORE=redis
|
|
# Database URL is read from a file, never from this variable directly.
|
|
DATABASE_URL_FILE=/run/secrets/database_url
|
|
# Cache URL (Redis) is read from a file.
|
|
CACHE_URL_FILE=/run/secrets/cache_url
|
|
# Connection pool and timeouts.
|
|
DB_POOL_MIN=4
|
|
DB_POOL_MAX=20
|
|
DB_CONNECT_TIMEOUT=5
|
|
DB_STATEMENT_TIMEOUT=10
|