Files
2026-09-30 12:13:29 +03:00

22 lines
780 B
Bash

# Copy to .env for your LOCAL synthetic test environment; never commit .env.
# compose.yaml sets these values for the api service; only SESSION_TTL_SECONDS
# is read from .env (default 3600, persistence test needs >= 300).
APP_HOST=0.0.0.0
APP_PORT=8080
APP_ENV=lab
SESSION_TTL_SECONDS=3600
# Secrets are files created by scripts/init-secrets.sh; paths contain no values.
DATABASE_URL_FILE=/run/secrets/database_url
# lab2 level 4: Valkey is a session cache, PostgreSQL is the source of truth.
SESSION_STORE=valkey
CACHE_URL_FILE=/run/secrets/cache_url
SESSION_CACHE_TTL_SECONDS=60
CACHE_TIMEOUT_SECONDS=0.25
CACHE_MAX_CONNECTIONS=20
CACHE_RETRY_AFTER_SECONDS=5
DB_POOL_SIZE=10
DB_MAX_OVERFLOW=5
DB_POOL_TIMEOUT_SECONDS=3
DB_CONNECT_TIMEOUT_SECONDS=3
DB_STATEMENT_TIMEOUT_MS=5000