# Environment Configuration Template
# Copy this file to .env and fill in your values
# ============================================
# Server Mode
# ============================================
MODE=http # or 'mcp' for MCP mode
# ============================================
# HTTP Server Configuration
# ============================================
HTTP_PORT=3000
HTTP_HOST=0.0.0.0
# ============================================
# API Keys (comma-separated)
# ============================================
# IMPORTANT: Set strong API keys for production!
API_KEYS=your-secret-key-1,your-secret-key-2
# ============================================
# CORS Configuration
# ============================================
CORS_ORIGINS=* # or specific origins: https://example.com,https://app.example.com
CORS_CREDENTIALS=false
# ============================================
# Rate Limiting
# ============================================
RATE_LIMIT_MAX=100
RATE_LIMIT_WINDOW=1m # 1m, 1h, 1d
# ============================================
# Logging
# ============================================
LOG_LEVEL=info # debug, info, warn, error
LOG_PRETTY=false # true for development (pretty-printed logs)
# ============================================
# Session Management
# ============================================
SESSION_TIMEOUT=3600000 # 1 hour in milliseconds
SESSION_CLEANUP_INTERVAL=300000 # 5 minutes in milliseconds
# ============================================
# Database Configuration (Optional)
# For single-connection mode or default connection
# ============================================
# DB_TYPE=mysql
# DB_HOST=localhost
# DB_PORT=3306
# DB_USER=root
# DB_PASSWORD=your_password
# DB_DATABASE=your_database
# DB_ALLOW_WRITE=false
# ============================================
# SQLite Configuration (if using SQLite)
# ============================================
# DB_FILE_PATH=/path/to/database.db
# ============================================
# MongoDB Configuration (if using MongoDB)
# ============================================
# DB_AUTH_SOURCE=admin