-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.env.example
More file actions
75 lines (56 loc) · 2.88 KB
/
.env.example
File metadata and controls
75 lines (56 loc) · 2.88 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Deadlock AI Assistant - Environment Configuration
# Copy this file to .env and fill in the values
# =============================================================================
# REQUIRED
# =============================================================================
# Anthropic API key for Claude AI
# Get your key from: https://console.anthropic.com/
ANTHROPIC_API_KEY=sk-ant-api03-your-key-here
# =============================================================================
# AUTHENTICATION (Optional)
# =============================================================================
# Comma-separated list of valid API keys for X-API-Key header authentication
# If not set, API key authentication is disabled
# API_KEYS=your-api-key-1,your-api-key-2
# Cloudflare Turnstile secret key for browser authentication
# Get your key from: https://dash.cloudflare.com/
# TURNSTILE_SECRET_KEY=0x4AAAAAAxxxxxxxxxxxxxxxx
# Patreon OAuth2 for patron authentication
# Get your credentials from: https://www.patreon.com/portal/registration/register-clients
# Tier rate limits are hardcoded in packages/api/patreon.py (~10 requests per euro)
# PATREON_CLIENT_ID=your-client-id
# PATREON_CLIENT_SECRET=your-client-secret
# PATREON_REDIRECT_URI=https://your-api.com/auth/patreon/callback
# PATREON_CAMPAIGN_ID=your-campaign-id
# =============================================================================
# REDIS (Optional)
# =============================================================================
# Redis connection URL for persistent conversation history
# Format: redis://[username:password@]host[:port][/database]
# REDIS_URL=redis://localhost:6379/0
# Conversation TTL in seconds (default: 86400 = 24 hours)
# CONVERSATION_TTL=86400
# =============================================================================
# RATE LIMITING (Optional)
# =============================================================================
# Enable or disable rate limiting (default: true)
# RATE_LIMIT_ENABLED=true
# Global rate limit: maximum requests from all sources per window (default: 1000)
# RATE_LIMIT_GLOBAL=1000
# Per-IP rate limit: maximum requests per IP address per window (default: 100)
# RATE_LIMIT_PER_IP=100
# Per-API key rate limit: maximum requests per API key per window (default: 500)
# RATE_LIMIT_PER_API_KEY=500
# Rate limit window duration in seconds (default: 60)
# RATE_LIMIT_WINDOW_SECONDS=60
# =============================================================================
# LOGGING (Optional)
# =============================================================================
# Log level: DEBUG, INFO, WARNING, ERROR, CRITICAL
# Default: INFO
# LOG_LEVEL=INFO
# =============================================================================
# AI AGENT (Optional)
# =============================================================================
# AI response timeout in seconds (default: 60)
# AGENT_TIMEOUT_SECONDS=60