forked from mtusi2026/mtusi2026lab2
lab2: PostgreSQL, Bearer-сессии и Redis-кэш
This commit is contained in:
+17
-3
@@ -3,9 +3,23 @@
|
||||
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
|
||||
# Choose credentials locally. File paths contain no secret values.
|
||||
# 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
|
||||
# Optional on 3, required use on 4 in lab2; Redis OR Valkey:
|
||||
SESSION_STORE=postgres
|
||||
# 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
|
||||
|
||||
Reference in New Issue
Block a user