.env.exampleโข1.16 kB
# MCP Server Configuration
PORT=1453
NODE_ENV=production
# --- STORAGE CONFIGURATION ---
# Set to "true" to enable Redis for distributed session and event storage.
# Leave blank or set to "false" for in-memory single-node mode (default).
USE_REDIS=false
# Session Management
SESSION_TIMEOUT=1800000 # 30 minutes in milliseconds
# CORS Configuration
CORS_ORIGIN=* # In production, set to specific origins like https://yourdomain.com
# Rate Limiting
RATE_LIMIT_MAX=1000 # Maximum requests per window
RATE_LIMIT_WINDOW=900000 # 15 minutes in milliseconds
# Redis Configuration (only used if USE_REDIS=true)
REDIS_HOST=redis
REDIS_PORT=6379
# REDIS_PASSWORD=your-secure-password # Use docker secrets instead for production
REDIS_DB=0
# Optional Features
# SAMPLE_TOOL_NAME=hello # Uncomment to enable sample tool
# Logging
LOG_LEVEL=info # Options: debug, info, warn, error
# For production deployments, consider:
# - Using Docker secrets for sensitive values (see docker-compose.secrets.yml)
# - Setting specific CORS origins instead of *
# - Adjusting rate limits based on your traffic patterns
# - Implementing proper monitoring and alerting