mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-22 16:43:35 +00:00
55 lines
1.2 KiB
Plaintext
55 lines
1.2 KiB
Plaintext
# 🚀 Claude Relay Service Configuration
|
|
|
|
# 🌐 服务器配置
|
|
PORT=3000
|
|
HOST=0.0.0.0
|
|
NODE_ENV=production
|
|
|
|
# 🔐 安全配置
|
|
JWT_SECRET=your-jwt-secret-here
|
|
ADMIN_SESSION_TIMEOUT=86400000
|
|
API_KEY_PREFIX=cr_
|
|
ENCRYPTION_KEY=your-encryption-key-here
|
|
|
|
# 📊 Redis 配置
|
|
REDIS_HOST=localhost
|
|
REDIS_PORT=6379
|
|
REDIS_PASSWORD=
|
|
REDIS_DB=0
|
|
|
|
# 🎯 Claude API 配置
|
|
CLAUDE_API_URL=https://api.anthropic.com/v1/messages
|
|
CLAUDE_API_VERSION=2023-06-01
|
|
CLAUDE_BETA_HEADER=claude-code-20250219,oauth-2025-04-20,interleaved-thinking-2025-05-14,fine-grained-tool-streaming-2025-05-14
|
|
|
|
# 🌐 代理配置
|
|
DEFAULT_PROXY_TIMEOUT=30000
|
|
MAX_PROXY_RETRIES=3
|
|
|
|
# 📈 使用限制
|
|
DEFAULT_TOKEN_LIMIT=1000000
|
|
DEFAULT_REQUEST_LIMIT=1000
|
|
|
|
# 🚦 速率限制
|
|
RATE_LIMIT_WINDOW=60000
|
|
RATE_LIMIT_MAX_REQUESTS=100
|
|
|
|
# 📝 日志配置
|
|
LOG_LEVEL=info
|
|
LOG_MAX_SIZE=10m
|
|
LOG_MAX_FILES=5
|
|
|
|
# 🔧 系统配置
|
|
CLEANUP_INTERVAL=3600000
|
|
TOKEN_USAGE_RETENTION=2592000000
|
|
HEALTH_CHECK_INTERVAL=60000
|
|
|
|
# 🎨 Web 界面配置
|
|
WEB_TITLE=Claude Relay Service
|
|
WEB_DESCRIPTION=Multi-account Claude API relay service with beautiful management interface
|
|
WEB_LOGO_URL=/assets/logo.png
|
|
|
|
# 🛠️ 开发配置
|
|
DEBUG=false
|
|
ENABLE_CORS=true
|
|
TRUST_PROXY=true |