-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
81 lines (65 loc) · 2.98 KB
/
Copy path.env.example
File metadata and controls
81 lines (65 loc) · 2.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# ============================================================================
# LibreChat Environment Configuration
# ============================================================================
# Copy this file to .env and fill in your actual values
# DO NOT commit .env file to version control
# ============================================================================
# ----------------------------------------------------------------------------
# Application Settings
# ----------------------------------------------------------------------------
NODE_ENV=production
PORT=3080
# ----------------------------------------------------------------------------
# Database Configuration
# ----------------------------------------------------------------------------
# MongoDB connection string (use service name from docker-compose.yml)
MONGO_URI=mongodb://mongodb:27017/librechat
# ----------------------------------------------------------------------------
# Security & Authentication
# ----------------------------------------------------------------------------
# Generate secure random strings for these values
# You can use: openssl rand -hex 32
# JWT tokens for authentication
JWT_SECRET=your-jwt-secret-here-min-32-chars
JWT_REFRESH_SECRET=your-jwt-refresh-secret-here-min-32-chars
# Session management
SESSION_SECRET=your-session-secret-here-min-32-chars
# Credentials encryption (for storing API keys securely)
# Generate with: openssl rand -hex 32
CREDS_KEY=your-creds-key-here-32-bytes
# Generate with: openssl rand -hex 16
CREDS_IV=your-creds-iv-here-16-bytes
# ----------------------------------------------------------------------------
# Feature Flags
# ----------------------------------------------------------------------------
# Allow new users to register
ALLOW_REGISTRATION=true
# Enable Ollama integration for local LLMs
ENABLE_OLLAMA_API=true
# ----------------------------------------------------------------------------
# LLM Provider API Keys
# ----------------------------------------------------------------------------
# OpenAI (GPT-3.5, GPT-4, etc.)
OPENAI_API_KEY=sk-your-openai-api-key-here
# Anthropic (Claude models)
ANTHROPIC_API_KEY=sk-ant-your-anthropic-api-key-here
# Google (Gemini, PaLM, etc.)
GOOGLE_KEY=your-google-api-key-here
# ----------------------------------------------------------------------------
# Optional: Ollama Configuration
# ----------------------------------------------------------------------------
# If running Ollama locally or in another container
# OLLAMA_BASE_URL=http://host.docker.internal:11434
# ----------------------------------------------------------------------------
# Optional: Additional Settings
# ----------------------------------------------------------------------------
# App title (displayed in browser)
# APP_TITLE=LibreChat
# Domain for the application
# DOMAIN_CLIENT=http://localhost:3080
# DOMAIN_SERVER=http://localhost:3080
# Debug mode
# DEBUG_LOGGING=false
# Rate limiting
# LIMIT_CONCURRENT_MESSAGES=true
# CONCURRENT_MESSAGE_MAX=2