ЛР 2: PostgreSQL и постоянные сессии — Гавриленко БПИ2303, на 3

This commit is contained in:
2026-11-13 01:27:52 +03:00
parent 65003b6119
commit 40bcd42aa3
19 changed files with 682 additions and 31 deletions
+5 -10
View File
@@ -1,11 +1,6 @@
# 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
# scripts/setup.sh creates .env and local secret files without printing credentials.
HOST_PORT=8082
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
# compose.yaml binds APP_HOST=0.0.0.0 and APP_PORT=8080 inside the API container.
# DATABASE_URL_FILE=/run/secrets/database_url (Compose secret)
# PostgreSQL stores all state including sessions; Redis/Valkey is not used on 3.