forked from mtusi2026/mtusi2026lab3
27 lines
1009 B
Bash
27 lines
1009 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
|
|
SESSION_TTL_SECONDS=3600
|
|
# Choose credentials locally. File paths contain no secret values.
|
|
DATABASE_URL_FILE=/run/secrets/database_url
|
|
# Optional on 3, required use on 4 in lab2; Redis OR Valkey:
|
|
SESSION_STORE=redis
|
|
CACHE_URL_FILE=/run/secrets/cache_url
|
|
API_REPLICAS=2
|
|
IDEMPOTENCY_TTL_SECONDS=86400
|
|
# info / debug / warning
|
|
LOG_LEVEL=info
|
|
# Сколько секунд после SIGTERM ждать незавершённые запросы (не больше 10).
|
|
SHUTDOWN_TIMEOUT=8
|
|
# Пул соединений с PostgreSQL и таймауты в секундах.
|
|
DB_POOL_MIN_SIZE=2
|
|
DB_POOL_MAX_SIZE=10
|
|
DB_POOL_TIMEOUT=3
|
|
DB_CONNECT_TIMEOUT=3
|
|
DB_STATEMENT_TIMEOUT=5
|
|
# Пул соединений с Redis и таймаут операций в секундах.
|
|
CACHE_POOL_MAX_SIZE=20
|
|
CACHE_TIMEOUT=2
|