forked from mtusi2026/mtusi2026lab2
2
This commit is contained in:
+6
-1
@@ -7,5 +7,10 @@ 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=postgres
|
||||
# postgres = сессии только в PostgreSQL; postgres+cache = PostgreSQL (источник истины) + Valkey как read-through кэш.
|
||||
SESSION_STORE=postgres+cache
|
||||
SESSION_CACHE_TTL_SECONDS=60
|
||||
CACHE_URL_FILE=/run/secrets/cache_url
|
||||
# Пулы/таймауты (необязательно, значения по умолчанию в app/config.py):
|
||||
# DB_POOL_MAX=10 DB_POOL_TIMEOUT=3 DB_STATEMENT_TIMEOUT_MS=5000 CACHE_TIMEOUT=0.25
|
||||
# WEB_CONCURRENCY=2 THREAD_LIMIT=24 HASH_CONCURRENCY=4
|
||||
|
||||
Reference in New Issue
Block a user