Spaces:
Sleeping
Sleeping
# LibreChat MongoDB Atlas Configuration | |
# Copy this file to .env and fill in your actual values | |
# MongoDB Atlas Connection | |
MONGO_URI=mongodb+srv://<username>:<password>@<cluster-name>.mongodb.net/<database-name>?retryWrites=true&w=majority | |
# Session Security | |
SESSION_EXPIRY=900000 | |
REFRESH_TOKEN_EXPIRY=604800000 | |
JWT_SECRET=your-super-secure-jwt-secret-key-here | |
JWT_REFRESH_SECRET=your-super-secure-jwt-refresh-secret-key-here | |
# Application Configuration | |
HOST=0.0.0.0 | |
PORT=3080 | |
NODE_ENV=production | |
# API Keys (if using external services) | |
MISTRAL_API_KEY=your-mistral-api-key-here | |
OPENROUTER_KEY=your-openrouter-key-here | |
# Security Settings | |
CREDS_KEY=your-32-character-credentials-encryption-key | |
CREDS_IV=your-16-character-initialization-vector | |
# Optional: Enable search functionality | |
# SEARCH=true | |
# MEILI_NO_ANALYTICS=true | |
# MEILI_HOST=https://your-meilisearch-instance.com | |
# MEILI_HTTP_ADDR=https://your-meilisearch-instance.com | |
# Database Configuration | |
DB_NAME=librechat | |
CONVERSATIONS_COLLECTION=conversations | |
USERS_COLLECTION=users | |
SESSIONS_COLLECTION=sessions |