-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
66 lines (51 loc) · 1.37 KB
/
.env.example
File metadata and controls
66 lines (51 loc) · 1.37 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
# Poe Rust SDK 环境变量配置示例
# 复制此文件为 .env 并填入您的实际配置
# === 必需配置 ===
# Poe 访问密钥(从 https://poe.com/create_bot 获取)
POE_ACCESS_KEY=your-poe-access-key-here
# === 可选配置 ===
# 机器人配置
POE_BOT_NAME=MyPoeBot
# 服务器配置
POE_SERVER_HOST=0.0.0.0
POE_SERVER_PORT=8080
# 请求配置
POE_REQUEST_TIMEOUT_MS=600000
POE_MAX_REQUEST_SIZE=1048576
POE_ALLOW_WITHOUT_KEY=false
# CORS 配置
POE_ENABLE_CORS=true
POE_CORS_ORIGINS=*
POE_CORS_ALLOWED_HEADERS=*
POE_CORS_ALLOWED_METHODS=GET,POST,OPTIONS
# 日志配置
RUST_LOG=info
POE_LOG_LEVEL=info
POE_LOG_FORMAT=pretty
POE_STRUCTURED_LOGGING=true
# 功能开关
POE_ENABLE_STREAMING=true
POE_ENABLE_VALIDATION=true
POE_ENABLE_METRICS=false
POE_ENABLE_HEALTH_CHECK=true
# 限制配置
POE_MAX_RESPONSE_LENGTH=100000
POE_MAX_SUGGESTED_REPLIES=10
POE_MAX_SUGGESTED_REPLY_LENGTH=1000
POE_RATE_LIMIT_PER_MINUTE=60
# 开发配置
POE_DEV_MODE=false
POE_AUTO_RELOAD=false
POE_TEST_MODE=false
# 数据库配置(如果需要)
# DATABASE_URL=sqlite://bot.db
# REDIS_URL=redis://localhost:6379
# 外部服务配置(如果需要)
# OPENAI_API_KEY=your-openai-key
# ANTHROPIC_API_KEY=your-anthropic-key
# 监控配置(如果需要)
# SENTRY_DSN=your-sentry-dsn
# PROMETHEUS_PORT=9090
# 安全配置
# JWT_SECRET=your-jwt-secret
# ENCRYPTION_KEY=your-encryption-key