forked from mtusi2026/mtusi2026lab2
Lab2: PostgreSQL, Bearer sessions and Redis for grade 4
This commit is contained in:
+12
-2
@@ -5,7 +5,17 @@ APP_PORT=8080
|
||||
APP_ENV=lab
|
||||
SESSION_TTL_SECONDS=3600
|
||||
# Choose credentials locally. File paths contain no secret values.
|
||||
# scripts/bootstrap.sh writes secrets/ and .env; do not commit them.
|
||||
DATABASE_URL_FILE=/run/secrets/database_url
|
||||
# Optional on 3, required use on 4 in lab2; Redis OR Valkey:
|
||||
SESSION_STORE=postgres
|
||||
# Direct URLs override the files. The API container uses the files above.
|
||||
# DATABASE_URL=postgresql+asyncpg://USER:PASSWORD@HOST:5432/messenger
|
||||
# REDIS_URL=redis://HOST:6379/0
|
||||
SESSION_STORE=redis
|
||||
CACHE_URL_FILE=/run/secrets/cache_url
|
||||
DB_POOL_SIZE=10
|
||||
DB_MAX_OVERFLOW=10
|
||||
DB_POOL_TIMEOUT_SECONDS=5
|
||||
DB_CONNECT_TIMEOUT_SECONDS=2
|
||||
DB_COMMAND_TIMEOUT_SECONDS=5
|
||||
REDIS_SOCKET_TIMEOUT_SECONDS=1
|
||||
REDIS_MAX_CONNECTIONS=50
|
||||
|
||||
Reference in New Issue
Block a user