diff --git a/.env.example b/.env.example index fa35fec..5c70a36 100644 --- a/.env.example +++ b/.env.example @@ -7,6 +7,11 @@ JWT_SECRET="dev-only-change-me" # Per-app HS256 secrets, JSON map keyed by appId (the `session` platform port) APP_SECRETS={"portal-demo":"dev-secret"} +# Redis. Unset → single-instance mode: socket.io uses its in-memory adapter (realtime does NOT +# fan out across replicas) and presence is a per-process Map (so the "don't push a thread you're +# viewing" gate only sees sockets on the same replica). REQUIRED for any multi-replica deploy. +REDIS_URL="redis://localhost:6379" + # Full-text message search (Meilisearch). Unset MEILI_URL → search is disabled (no-op). # MEILI_KEY must equal the meilisearch server's MEILI_MASTER_KEY (docker-compose default below). MEILI_URL="http://localhost:7700"