Initial commit: 浼佷笟寰俊 AI 鏈哄櫒浜哄姪鐞?MVP
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
39
.env.prod.example
Normal file
39
.env.prod.example
Normal file
@@ -0,0 +1,39 @@
|
||||
# 生产环境变量模板
|
||||
# 复制此文件为 .env.prod 并填写实际值
|
||||
# 注意:.env.prod 包含敏感信息,不要提交到 Git 仓库
|
||||
|
||||
# ============ Backend ============
|
||||
API_HOST=0.0.0.0
|
||||
API_PORT=8000
|
||||
|
||||
# Database(可选,最小回调壳可以先不启用)
|
||||
# DATABASE_URL=postgresql+asyncpg://wecom:wecom_secret@db:5432/wecom_ai
|
||||
# DATABASE_URL_SYNC=postgresql://wecom:wecom_secret@db:5432/wecom_ai
|
||||
|
||||
# JWT(admin 登录,可选)
|
||||
JWT_SECRET=your-jwt-secret-change-in-production
|
||||
JWT_ALGORITHM=HS256
|
||||
JWT_EXPIRE_MINUTES=60
|
||||
|
||||
# WeCom Callback(必须,从企业微信管理后台获取)
|
||||
WECOM_CORP_ID=你的企业ID
|
||||
WECOM_AGENT_ID=你的应用AgentId
|
||||
WECOM_SECRET=你的应用Secret(可选,用于主动发送消息)
|
||||
WECOM_TOKEN=你的Token(必须与企微后台一致)
|
||||
WECOM_ENCODING_AES_KEY=你的43位密钥(必须与企微后台一致)
|
||||
|
||||
# WeCom API
|
||||
WECOM_API_BASE=https://qyapi.weixin.qq.com
|
||||
WECOM_API_TIMEOUT=10
|
||||
WECOM_API_RETRIES=2
|
||||
|
||||
# Log
|
||||
LOG_LEVEL=INFO
|
||||
LOG_JSON=true
|
||||
|
||||
# ============ Admin (Next.js) ============
|
||||
# NEXT_PUBLIC_API_BASE=https://your-domain.com
|
||||
|
||||
# ============ Nginx (deploy) ============
|
||||
# SSL_CERT_PATH=/etc/letsencrypt/live/your-domain.com/fullchain.pem
|
||||
# SSL_KEY_PATH=/etc/letsencrypt/live/your-domain.com/privkey.pem
|
||||
Reference in New Issue
Block a user