added a session storage policy in Redis

This commit is contained in:
2026-10-25 02:14:56 +03:00
parent 7b7ca1b888
commit 76b34fca4b
21 changed files with 271 additions and 247 deletions
+11 -2
View File
@@ -7,13 +7,22 @@ MAX_MESSAGES=100000
MAX_IN_FLIGHT=16
SESSION_TTL_SECONDS=3600
SESSION_STORE=postgres
SESSION_STORE=redis
REDIS_HOST=redis
REDIS_PORT=6379
REDIS_DB=0
REDIS_PASSWORD=change-me
REDIS_MAX_CONNECTIONS=20
REDIS_POOL_TIMEOUT_SECONDS=1
REDIS_CONNECT_TIMEOUT_SECONDS=1
REDIS_SOCKET_TIMEOUT_SECONDS=0.5
DB_HOST=postgres
DB_PORT=5432
DB_NAME=messenger
DB_USER=messenger
DB_PASSWORD_FILE=/run/secrets/postgres_password
DB_PASSWORD=change-me
DB_POOL_SIZE=5
DB_MAX_OVERFLOW=10