Implement lab2 PostgreSQL messenger, sessions, SQL research and defense guide

This commit is contained in:
2026-10-02 12:49:09 +03:00
parent 65003b6119
commit 6fe56ec642
43 changed files with 12869 additions and 33 deletions
+8 -10
View File
@@ -1,11 +1,9 @@
# 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
# Host HTTP port; API listens on 8080 inside its container.
APP_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
# Generated by make bootstrap, mounted through Compose secrets.
# The actual API environment is declared in compose.yaml:
# DATABASE_URL_FILE=/run/secrets/database_url
# CACHE_URL_FILE=/run/secrets/cache_url
# CURSOR_KEY_FILE=/run/secrets/cursor_key
# SESSION_STORE=postgres (one authoritative session store, no runtime switch)