.env.example
Set these on your host before deploying. Each platform has an “Environment Variables” section in the deploy flow. (showing first 20, more exist in .env.example)
HOST
PORT
MONGO_URI
MONGO_MAX_POOL_SIZE
The maximum number of connections in the connection pool. */
MONGO_MIN_POOL_SIZE
The minimum number of connections in the connection pool. */
MONGO_MAX_CONNECTING
The maximum number of connections that may be in the process of being established concurrently by the connection pool. */
MONGO_MAX_IDLE_TIME_MS
The maximum number of milliseconds that a connection can remain idle in the pool before being removed and closed. */
MONGO_WAIT_QUEUE_TIMEOUT_MS
The maximum time in milliseconds that a thread can wait for a connection to become available. */
MONGO_AUTO_INDEX
Set to false to disable automatic index creation for all models associated with this connection. */
MONGO_AUTO_CREATE
Set to `false` to disable Mongoose automatically calling `createCollection()` on every model created on this connection. */
DOMAIN_CLIENT
DOMAIN_SERVER
ADMIN_PANEL_URL
External admin panel base URL used for admin OAuth/SSO redirects. Required when the admin panel is hosted separately from LibreChat. May…
NO_INDEX
TRUST_PROXY
Use the address that is at most n number of hops away from the Express application. req.socket.remoteAddress is the first hop, and the rest…
CONSOLE_JSON
Use when process console logs in cloud deployment like GCP/AWS
DEBUG_LOGGING
DEBUG_CONSOLE
LOG_TO_FILE
Set to false to disable file-backed Winston transports.
AGENT_DEBUG_LOGGING
Set to true to enable agent debug logging
brew install flyctl && fly launch --from https://github.com/danny-avila/LibreChat
curl -L https://fly.io/install.sh | sh && fly launch --from https://github.com/danny-avila/LibreChat
iwr https://fly.io/install.ps1 -useb | iex; fly launch --from https://github.com/danny-avila/LibreChat