forked from mtusi2026/mtusi2026lab2
Messages survive restart in Postgres, and bearer sessions persist in Valkey with AOF. Co-authored-by: Cursor <cursoragent@cursor.com>
16 lines
677 B
Bash
16 lines
677 B
Bash
# 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
|
|
APP_PORT=8080
|
|
APP_ENV=lab
|
|
SESSION_TTL_SECONDS=3600
|
|
# Sessions of this stand live in Valkey, not in PostgreSQL.
|
|
SESSION_STORE=valkey
|
|
POSTGRES_USER=messenger
|
|
POSTGRES_PASSWORD=local-only-change-me
|
|
POSTGRES_DB=messenger
|
|
# Optional file paths. The API reads a file when it exists, otherwise DATABASE_URL / REDIS_URL.
|
|
# Compose injects those URLs itself; do not put the database password into Git beyond this placeholder.
|
|
DATABASE_URL_FILE=/run/secrets/database_url
|
|
CACHE_URL_FILE=/run/secrets/cache_url
|