This commit is contained in:
2026-11-06 18:09:01 +03:00
parent 0ab3a341aa
commit 8f89c7c43b
68 changed files with 4432 additions and 29 deletions
+14 -11
View File
@@ -1,13 +1,16 @@
# Copy to .env for your LOCAL synthetic test environment; never commit .env.
# These are logical interface suggestions; map actual framework names in REPORT.md.
APP_HOST=0.0.0.0
# Copy to .env only if you prefer a file; scripts/deploy.sh reads the same names
# from the process environment. Never commit .env.
#
# Public HTTP port of the single entrypoint (Traefik). API tasks publish no ports.
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
API_IMAGE=mtusi-messenger-lab3:3.0.0
# Two API replicas are declared in stack.yaml; override only for experiments.
API_REPLICAS=2
IDEMPOTENCY_TTL_SECONDS=86400
# Bearer session lifetime; survives restarts because Valkey stores absolute expiry.
SESSION_TTL_SECONDS=3600
# Sessions live in Valkey. The former SESSION_STORE=postgres is rejected at start.
SESSION_STORE=redis
# Swarm secret names are created by scripts/deploy.*; values live in secrets/.
DATABASE_URL_FILE=/run/secrets/database_url
CACHE_URL_FILE=/run/secrets/cache_url
# Idempotency-Key retention is fixed by the contract at 24 hours; no env knob.