Add first lab code

This commit is contained in:
2026-10-09 14:57:52 +03:00
parent 65003b6119
commit d9fe67a8ce
24 changed files with 1040 additions and 9 deletions
+10 -9
View File
@@ -1,11 +1,12 @@
# Copy to .env for your LOCAL synthetic test environment; never commit .env.
# These are logical interface suggestions; map actual framework names in REPORT.md.
# Used by python -m src. Docker run reads this file through --env-file.
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
# 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
MAX_REQUEST_BYTES=65536
MAX_INFLIGHT=32
MESSAGE_RATE=1000
MESSAGE_BURST=1000