forked from mtusi2026/mtusi2026lab2
PostgreSQL с версионируемыми миграциями, вход по Basic и Bearer-сессии в Valkey (AOF), Argon2id, compose-стенд с секретами в файлах. Собственные тесты в student-tests/, проверки инфраструктуры и EXPLAIN в scripts/, отчёт в REPORT.md, результаты в evidence/, команды для показа в DEMO.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
15 lines
702 B
Bash
15 lines
702 B
Bash
# Copy to .env for your LOCAL synthetic test environment; never commit .env.
|
|
# docker compose reads .env to fill ${...} in compose.yaml; every value has a default there.
|
|
# Passwords are NOT here: they are files in secrets/ (python scripts/init_secrets.py).
|
|
APP_ENV=lab
|
|
APP_LOG_LEVEL=INFO
|
|
APP_SHUTDOWN_TIMEOUT=8
|
|
# API port published on 127.0.0.1 of the host.
|
|
APP_PUBLISHED_PORT=8080
|
|
SESSION_TTL_SECONDS=3600
|
|
DB_POOL_SIZE=10
|
|
# Fixed inside the containers by compose.yaml (skeleton names kept):
|
|
# APP_HOST=0.0.0.0 APP_PORT=8080
|
|
# DATABASE_URL_FILE=/run/secrets/database_url CACHE_URL_FILE=/run/secrets/cache_url
|
|
# SESSION_STORE from the skeleton is not needed: sessions are always stored in Valkey.
|