Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide production-ready memory store for eypress-session (#5212)
The `express-session` library comes with a session storage meant for testing by default. That is why you get a message like this when you start up LibreChat with OIDC enabled: Warning: connect.session() MemoryStore is not designed for a production environment, as it will leak memory, and will not scale past a single process. LibreChat can already use Redis as a session storage, although Redis support is still marked as experimental. It also makes the set-up more complex, since you will need to configure and run yet another service. This pull request provides a simple alternative by using a in-memory session store marked as a production-ready alternative by the guys from `express-session`¹. You can still configure Redis, but this provides a simple, good default for everyone else. See also #1014 ¹⁾ https://github.com/expressjs/session?tab=readme-ov-file#compatible-session-stores
- Loading branch information