forked from mtusi2026/mtusi2026lab2
feat: add redis
This commit is contained in:
+4
-3
@@ -1,11 +1,12 @@
|
||||
# Copy to .env for your LOCAL synthetic test environment; never commit .env.
|
||||
# These are logical interface suggestions; map actual framework names in REPORT.md.
|
||||
# .env is optional: compose.yaml has the same defaults.
|
||||
# APP_PORT is the published host port (127.0.0.1); inside the container API listens on 8080.
|
||||
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.
|
||||
# Generated by the secrets-init service into the "secrets" volume; fixed paths in compose.yaml.
|
||||
DATABASE_URL_FILE=/run/secrets/database_url
|
||||
# Optional on 3, required use on 4 in lab2; Redis OR Valkey:
|
||||
# Sessions: PostgreSQL is the source of truth, Redis is a read-through cache (no persistence).
|
||||
SESSION_STORE=postgres
|
||||
CACHE_URL_FILE=/run/secrets/cache_url
|
||||
|
||||
Reference in New Issue
Block a user