level 4, changed to HAProxy
This commit is contained in:
+11
-6
@@ -4,16 +4,21 @@ 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:
|
||||
# Not passed to containers: compose.yaml gives api/migrate DB_HOST/DB_USER/DB_NAME and
|
||||
# DB_PASSWORD_FILE=/run/secrets/postgres_password (Compose secret built from POSTGRES_PASSWORD below).
|
||||
# The app also accepts DATABASE_URL_FILE or DATABASE_URL instead.
|
||||
# Sessions live in PostgreSQL; no Redis/Valkey, CACHE_URL_FILE is unused.
|
||||
SESSION_STORE=postgres
|
||||
CACHE_URL_FILE=/run/secrets/cache_url
|
||||
API_REPLICAS=2
|
||||
IDEMPOTENCY_TTL_SECONDS=86400
|
||||
# compose.yaml builds DATABASE_URL from these; pick your own local password.
|
||||
# Pick your own local password. It reaches containers only as the postgres_password secret file.
|
||||
POSTGRES_USER=messenger
|
||||
POSTGRES_PASSWORD=change-me-locally
|
||||
POSTGRES_DB=messenger
|
||||
SHUTDOWN_TIMEOUT_SECONDS=5
|
||||
# SIGTERM: readiness 503 for DRAIN_SECONDS (> LB detection 3 s), then in-flight requests get
|
||||
# SHUTDOWN_TIMEOUT_SECONDS. Keep DRAIN + SHUTDOWN < stop_grace_period (10 s).
|
||||
DRAIN_SECONDS=4
|
||||
SHUTDOWN_TIMEOUT_SECONDS=3
|
||||
# Image tag messenger-lab3-app:<APP_VERSION>, shown as X-App-Version; scripts/rolling-update.sh sets it.
|
||||
APP_VERSION=dev
|
||||
LB_PORT=8080
|
||||
|
||||
Reference in New Issue
Block a user