forked from mtusi2026/mtusi2026lab2
ЛР 2 — БВТ2304 — Черников
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>
This commit is contained in:
+11
-8
@@ -1,11 +1,14 @@
|
||||
# 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
|
||||
# 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
|
||||
# Choose credentials locally. File paths contain no secret values.
|
||||
DATABASE_URL_FILE=/run/secrets/database_url
|
||||
# Optional on 3, required use on 4 in lab2; Redis OR Valkey:
|
||||
SESSION_STORE=postgres
|
||||
CACHE_URL_FILE=/run/secrets/cache_url
|
||||
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.
|
||||
|
||||
Reference in New Issue
Block a user