-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.env.example
More file actions
33 lines (23 loc) · 904 Bytes
/
.env.example
File metadata and controls
33 lines (23 loc) · 904 Bytes
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
# Server Mode (http, mcp, or public)
MODE=mcp
# HTTP Server Port (only for http and public modes)
PORT=3000
# Storage Backend (memory or redis)
STORAGE_TYPE=memory
# Maximum contexts for in-memory storage (default: 10000)
# MEMORY_MAX_SIZE=10000
# Redis URL (only if STORAGE_TYPE=redis)
# REDIS_URL=redis://localhost:6379
# Node environment (development or production)
# NODE_ENV=development
# --- Public mode settings ---
# Trust proxy for correct client IP behind reverse proxy (default: not set)
# Set to "true" when behind Cloudflare/nginx, or a specific value like "loopback"
# TRUST_PROXY=true
# CORS allowed origins (comma-separated, default: allow all)
# CORS_ORIGINS=https://mcp.klever.org,https://klever.org
# Rate limiting (requests per minute per IP)
# RATE_LIMIT_MCP=60
# RATE_LIMIT_API=30
# Maximum request body size (default: 1mb for public, 10mb for http)
# BODY_SIZE_LIMIT=1mb