Lab2
This commit is contained in:
+14
-4
@@ -1,11 +1,21 @@
|
||||
# Copy to .env for your LOCAL synthetic test environment; never commit .env.
|
||||
# These are logical interface suggestions; map actual framework names in REPORT.md.
|
||||
# compose.yaml sets these values for the api service; only SESSION_TTL_SECONDS
|
||||
# is read from .env (default 3600, persistence test needs >= 300).
|
||||
APP_HOST=0.0.0.0
|
||||
APP_PORT=8080
|
||||
APP_ENV=lab
|
||||
SESSION_TTL_SECONDS=3600
|
||||
# Choose credentials locally. File paths contain no secret values.
|
||||
# Secrets are files created by scripts/init-secrets.sh; paths contain no values.
|
||||
DATABASE_URL_FILE=/run/secrets/database_url
|
||||
# Optional on 3, required use on 4 in lab2; Redis OR Valkey:
|
||||
SESSION_STORE=postgres
|
||||
# lab2 level 4: Valkey is a session cache, PostgreSQL is the source of truth.
|
||||
SESSION_STORE=valkey
|
||||
CACHE_URL_FILE=/run/secrets/cache_url
|
||||
SESSION_CACHE_TTL_SECONDS=60
|
||||
CACHE_TIMEOUT_SECONDS=0.25
|
||||
CACHE_MAX_CONNECTIONS=20
|
||||
CACHE_RETRY_AFTER_SECONDS=5
|
||||
DB_POOL_SIZE=10
|
||||
DB_MAX_OVERFLOW=5
|
||||
DB_POOL_TIMEOUT_SECONDS=3
|
||||
DB_CONNECT_TIMEOUT_SECONDS=3
|
||||
DB_STATEMENT_TIMEOUT_MS=5000
|
||||
|
||||
Reference in New Issue
Block a user