Files
doris-mcp-server/.env.example

90 lines
2.8 KiB
Plaintext
Raw Normal View History

2025-06-12 19:36:16 +08:00
# Doris MCP Server Configuration
# Copy this file to .env and modify the values according to your environment
2025-06-08 18:44:40 +08:00
2025-06-12 19:36:16 +08:00
# =============================================================================
2025-06-08 18:44:40 +08:00
# Database Configuration
2025-06-12 19:36:16 +08:00
# =============================================================================
# Doris FE connection settings
2025-06-08 18:44:40 +08:00
DORIS_HOST=localhost
DORIS_PORT=9030
DORIS_USER=root
2025-06-12 19:36:16 +08:00
DORIS_PASSWORD=
DORIS_DATABASE=information_schema
# Doris FE HTTP API port
DORIS_FE_HTTP_PORT=8030
# BE nodes configuration for external access
# If DORIS_BE_HOSTS is empty, will use "show backends" to get BE nodes automatically
# Format: comma-separated list of BE host addresses
# Example: DORIS_BE_HOSTS=192.168.1.100,192.168.1.101,192.168.1.102
DORIS_BE_HOSTS=
# BE webserver port for HTTP APIs (memory tracker, metrics, etc.)
DORIS_BE_WEBSERVER_PORT=8040
# =============================================================================
# Connection Pool Configuration
# =============================================================================
2025-06-08 18:44:40 +08:00
DORIS_MAX_CONNECTIONS=20
DORIS_CONNECTION_TIMEOUT=30
DORIS_HEALTH_CHECK_INTERVAL=60
DORIS_MAX_CONNECTION_AGE=3600
2025-06-12 19:36:16 +08:00
# =============================================================================
# Profile And Explain Max Data Size
# =============================================================================
MAX_RESPONSE_CONTENT_SIZE=4096
# =============================================================================
# Security Configuration
# =============================================================================
2025-06-26 18:55:30 +08:00
ENABLE_SECURITY_CHECK=true
BLOCKED_KEYWORDS="DROP,TRUNCATE,DELETE,SHUTDOWN,INSERT,UPDATE,CREATE,ALTER,GRANT,REVOKE,KILL"
2025-06-08 18:44:40 +08:00
AUTH_TYPE=token
2025-06-12 19:36:16 +08:00
TOKEN_SECRET=your_secret_key_here
2025-06-08 18:44:40 +08:00
TOKEN_EXPIRY=3600
MAX_RESULT_ROWS=10000
2025-06-12 19:36:16 +08:00
MAX_QUERY_COMPLEXITY=100
2025-06-08 18:44:40 +08:00
ENABLE_MASKING=true
2025-06-12 19:36:16 +08:00
# =============================================================================
# Performance Configuration
# =============================================================================
2025-06-08 18:44:40 +08:00
ENABLE_QUERY_CACHE=true
CACHE_TTL=300
MAX_CACHE_SIZE=1000
MAX_CONCURRENT_QUERIES=50
QUERY_TIMEOUT=300
2025-06-12 19:36:16 +08:00
# =============================================================================
2025-06-08 18:44:40 +08:00
# Logging Configuration
2025-06-12 19:36:16 +08:00
# =============================================================================
2025-06-08 18:44:40 +08:00
LOG_LEVEL=INFO
2025-06-12 19:36:16 +08:00
LOG_FILE_PATH=
2025-06-08 18:44:40 +08:00
ENABLE_AUDIT=true
2025-06-12 19:36:16 +08:00
AUDIT_FILE_PATH=
# =============================================================================
# Monitoring Configuration
# =============================================================================
2025-06-08 18:44:40 +08:00
ENABLE_METRICS=true
METRICS_PORT=3001
HEALTH_CHECK_PORT=3002
ENABLE_ALERTS=false
ALERT_WEBHOOK_URL=
2025-06-12 19:36:16 +08:00
# =============================================================================
# Server Configuration
# =============================================================================
2025-06-08 18:44:40 +08:00
SERVER_NAME=doris-mcp-server
SERVER_VERSION=0.4.2
2025-06-08 18:44:40 +08:00
SERVER_PORT=3000