forked from mtusi2026/mtusi2026lab2
реализован уровень 3
This commit is contained in:
+23
-5
@@ -1,11 +1,29 @@
|
||||
# Copy to .env for your LOCAL synthetic test environment; never commit .env.
|
||||
# These are logical interface suggestions; map actual framework names in REPORT.md.
|
||||
# Compose uses these values for interpolation in compose.yaml.
|
||||
|
||||
APP_HOST=0.0.0.0
|
||||
APP_PORT=8080
|
||||
APP_ENV=lab
|
||||
|
||||
POSTGRES_USER=messenger
|
||||
POSTGRES_DB=messenger
|
||||
|
||||
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
|
||||
|
||||
# File paths contain no secret values.
|
||||
DATABASE_URL_FILE=/run/secrets/database_url
|
||||
|
||||
DB_MAX_CONNS=10
|
||||
DB_MIN_CONNS=2
|
||||
DB_MAX_CONN_LIFETIME=30m
|
||||
DB_MAX_CONN_IDLE_TIME=5m
|
||||
DB_HEALTH_CHECK_PERIOD=30s
|
||||
DB_CONNECT_TIMEOUT=5s
|
||||
DB_QUERY_TIMEOUT=3s
|
||||
|
||||
READINESS_TIMEOUT=2s
|
||||
SHUTDOWN_TIMEOUT=10s
|
||||
|
||||
# Redis will be added for grade 4.
|
||||
CACHE_URL_FILE=/run/secrets/cache_url
|
||||
Reference in New Issue
Block a user