Files
mtusi2026lab3/.env.example

22 lines
769 B
Bash

# Copy to .env for your LOCAL synthetic test environment; never commit .env.
# Values below are placeholders, not secrets. Choose your own local values.
APP_HOST=0.0.0.0
APP_PORT=8080
APP_ENV=lab
SESSION_TTL_SECONDS=3600
# Shared PostgreSQL for BOTH API replicas
POSTGRES_USER=messenger
POSTGRES_PASSWORD=replace-with-local-synthetic-password
POSTGRES_DB=messenger
DATABASE_URL=postgresql://messenger:replace-with-local-synthetic-password@db:5432/messenger
# Alternative for deployments that mount a secret file instead of an env variable:
# DATABASE_URL_FILE=/run/secrets/database_url
# Lab3 topology
API_REPLICAS=2
IDEMPOTENCY_TTL_SECONDS=86400
# Redis/Valkey is not used on level 3; sessions and the idempotency ledger are in PostgreSQL.
# SESSION_STORE=postgres