forked from mtusi2026/mtusi2026lab2
Перенести мессенджер в PostgreSQL и сессии в Redis.
Подтверждённые сообщения и действующие сессии переживают перезапуск, история читается по индексу, копия восстанавливается в новый том.
This commit is contained in:
+10
-7
@@ -1,11 +1,14 @@
|
||||
# Copy to .env for your LOCAL synthetic test environment; never commit .env.
|
||||
# These are logical interface suggestions; map actual framework names in REPORT.md.
|
||||
# Copy to .env. These values are for the local stand only.
|
||||
# .env is gitignored. Do not put a real password here and then reuse it anywhere else.
|
||||
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=postgres
|
||||
CACHE_URL_FILE=/run/secrets/cache_url
|
||||
SESSION_STORE=redis
|
||||
POSTGRES_PASSWORD=lab2localpass
|
||||
REDIS_PASSWORD=lab2redispass
|
||||
MAX_MESSAGES=100000
|
||||
MAX_PER_SECOND=10000
|
||||
MAX_INFLIGHT_BODIES=32
|
||||
# The API container receives DATABASE_URL and REDIS_URL from compose.yaml.
|
||||
# DATABASE_URL_FILE and CACHE_URL_FILE are also read if you mount those files instead.
|
||||
|
||||
Reference in New Issue
Block a user