Files
2026-10-29 10:53:32 +03:00

24 lines
1.1 KiB
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
LOG_LEVEL=info
SESSION_TTL_SECONDS=3600
# Local synthetic database. Use a password without URL reserved characters.
# Compose injects DATABASE_URL into the API from these three values.
# The password below is a placeholder: change it in the untracked .env.
POSTGRES_USER=messenger
POSTGRES_PASSWORD=replace-with-a-local-password
POSTGRES_DB=messenger
# Optional. When set, the API reads the URL from this file instead of DATABASE_URL.
# DATABASE_URL_FILE=/run/secrets/database_url
# Optional on 3, required use on 4 in lab2; Redis OR Valkey.
# PostgreSQL stores the session. Redis caches the lookup and does not keep its own volume.
SESSION_STORE=postgres
# Compose injects REDIS_URL. When set, this file wins and is not logged.
# CACHE_URL_FILE=/run/secrets/cache_url
# First history page. protected is the default: the page key includes the chat version.
# naive and off exist only to measure the track-1 race and must not stay in .env.
# HISTORY_CACHE=protected