-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
59 lines (48 loc) · 2.11 KB
/
Copy path.env.example
File metadata and controls
59 lines (48 loc) · 2.11 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
# 仅在此处填写敏感信息;其余运行参数可使用 app/config.py 内的默认值或专用配置中心。
ENVIRONMENT="development" # 当前运行环境,支持 development, production, staging
PROXY_STUB_MODE=True # TEST PROXY
PROMETHEUS_ENABLED=True # 是否暴露 Prometheus 指标
# Database credentials (示例)
MYSQL_URL="mysql+aiomysql://user:password@localhost/db"
REDIS_URL="redis://localhost:6379"
# 如未启用 requirepass 可留空
REDIS_PASSWORD="your-redis-password"
# 若必须走 SOCKS5 代理,取消注释并填写
# REDIS_SOCKS5_HOST="127.0.0.1"
# REDIS_SOCKS5_PORT=1080
# Security configuration
# ⚠️ 生产环境必须替换为随机生成的强密钥!
# 生成方式:python -c "import secrets; print(secrets.token_urlsafe(32))"
SECRET_KEY="your-secret-key-change-me"
# Cloudflare Turnstile
TURNSTILE_SITE_KEY="your-site-key"
TURNSTILE_SECRET_KEY="your-secret-key"
# resend
RESEND_API_KEY=re_xxx_your_api_key
# openai azure
AZURE_OPENAI_BASE_URL="https://your-resource-name.openai.azure.com/"
AZURE_OPENAI_API_KEY="your-azure-openai-api-key"
# openai chatanywhere
OPENAI_PROVIDER="chatanywhere"
CHATANYWHERE_BASE_URL="https://api.chatanywhere.org"
CHATANYWHERE_API_KEY="your-chatanywhere-api-key"
# CHATANYWHERE_DAILY_SUCCESS_LIMIT=200 # 可按需调整,当天成功达到该值后改走 Azure
# ZAI
ZAI_BASE_URL="https://open.bigmodel.cn/api/paas/v4/"
ZAI_API_KEY="your-zai-api-key"
# community
SILICONFLOW_CN_BASE_URL="https://api.siliconflow.cn/v1/"
SILICONFLOW_CN_API_KEY="your-siliconflow-api-key"
# gemini
GOOGLE_AI_BASE_URL="https://generativelanguage.googleapis.com/v1beta/openai/"
GOOGLE_AI_API_KEY="your-google-ai-api-key"
# SerpAPI
SERPAPI_API_KEY="your-serpapi-api-key"
# Alipay Face-to-Face Pay (当面付)
# app_id、支付宝公钥、应用私钥需与环境匹配;沙箱/正式各一套
# ALIPAY_APP_ID="your-alipay-app-id"
# ALIPAY_PUBLIC_KEY_PATH="/path/to/alipay_public_key.txt"
# ALIPAY_APP_PRIVATE_KEY_PATH="/path/to/app_private_key.pem"
# ALIPAY_NOTIFY_URL="https://your-domain.com/alipay/notify"
# # 开发测试可设 True 使用沙箱网关
# ALIPAY_SANDBOX_DEBUG=False