forked from mtusi2026/mtusi2026lab2
20 lines
759 B
Bash
20 lines
759 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
|
|
|
|
# Compose / PostgreSQL (lab2 level 3: sessions also live in PostgreSQL)
|
|
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
|
|
|
|
# Optional on level 3. Not used by this solution (SESSION_STORE=postgres).
|
|
# SESSION_STORE=postgres
|
|
# CACHE_URL_FILE=/run/secrets/cache_url
|