Complete lab

This commit is contained in:
2026-10-09 16:11:06 +03:00
parent d9fe67a8ce
commit 5de73c5475
48 changed files with 1749 additions and 203 deletions
+8 -8
View File
@@ -1,12 +1,12 @@
# Used by python -m src. Docker run reads this file through --env-file.
# Copy to .env; choose a local password. Never commit .env.
APP_HOST=0.0.0.0
APP_PORT=8080
# Single-process resource limits. Text bytes are UTF-8 payload, not process RSS.
MAX_USERS=1000
MAX_CHATS=1000
MAX_MESSAGES=10000
MAX_TEXT_BYTES=16777216
POSTGRES_DB=messenger
POSTGRES_USER=messenger
POSTGRES_PASSWORD=replace-with-local-password
SESSION_TTL_SECONDS=3600
CACHE_TTL_SECONDS=30
MAX_REQUEST_BYTES=65536
MAX_INFLIGHT=32
MESSAGE_RATE=1000
MESSAGE_BURST=1000
# Compose sets POSTGRES_HOST=postgres and REDIS_URL=redis://redis:6379/0.
# For a manual API launch set DATABASE_URL and REDIS_URL in the environment.