forked from mtusi2026/mtusi2026lab2
Complete lab
This commit is contained in:
+8
-8
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user