Files
assistant/.env.production.example
wangliang 754804219f feat: 添加生产环境部署配置和文档
## 新增文件

### 部署文档
-  DEPLOYMENT.md - 生产环境部署指南
-  .env.production.example - 生产环境变量配置模板

### 生产环境配置
-  docker-compose.prod.yml - 生产环境 Docker Compose 配置
-  docker-compose.yml - 更新开发环境配置

## 配置说明

### 生产环境优化
- 使用生产级配置参数
- 优化资源限制和重启策略
- 添加健康检查和监控

### 环境变量模板
- 提供完整的生产环境配置示例
- 包含所有必需的环境变量
- 添加安全配置说明

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-27 14:01:13 +08:00

82 lines
2.4 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# B2B Shopping AI Assistant - Production Environment Variables
# 生产环境配置示例 - 请复制为 .env.production 并填写真实值
# ============ AI Model ============
# 智谱 AI API Key
ZHIPU_API_KEY=your_zhipu_api_key_here
# 模型名称
ZHIPU_MODEL=GLM-4-Flash-250414
# 推理模式(开启会消耗更多 token但更智能
ENABLE_REASONING_MODE=false
# 复杂查询启用推理模式
REASONING_MODE_FOR_COMPLEX=true
# ============ Redis ============
# Redis 密码(必须设置强密码)
REDIS_PASSWORD=your_secure_redis_password_here
# Redis 主机
REDIS_HOST=redis
# Redis 端口
REDIS_PORT=6379
# Redis 数据库编号
REDIS_DB=0
# ============ Chatwoot (生产环境) ============
# Chatwoot API URL生产环境地址
CHATWOOT_API_URL=https://chatwoot.yourdomain.com
# Chatwoot API Token从 Chatwoot 后台生成)
CHATWOOT_API_TOKEN=your_chatwoot_api_token_here
# Chatwoot Webhook Secret配置在 Chatwoot webhook 设置中)
CHATWOOT_WEBHOOK_SECRET=your_webhook_secret_here
# Chatwoot Account ID
CHATWOOT_ACCOUNT_ID=1
# ============ Strapi CMS (FAQ/Knowledge Base) ============
# Strapi API URL
STRAPI_API_URL=https://cms.yourdomain.com
# Strapi API Token
STRAPI_API_TOKEN=your_strapi_api_token_here
# ============ Hyperf PHP API ============
# Hyperf API URL生产环境
HYPERF_API_URL=https://api.gaia888.com
# Hyperf API Token
HYPERF_API_TOKEN=your_hyperf_api_token_here
# ============ Mall API ============
# Mall API URL生产环境
MALL_API_URL=https://apicn.gaia888.com
# 租户 ID
MALL_TENANT_ID=2
# 货币代码
MALL_CURRENCY_CODE=EUR
# 语言 ID
MALL_LANGUAGE_ID=1
# 来源域名
MALL_SOURCE=www.gaia888.com
# ============ Frontend URLs ============
# 前端 URL用于生成订单详情链接
FRONTEND_URL=https://www.gaia888.com
# ============ Monitoring ============
# Sentry DSN错误监控可选
SENTRY_DSN=
# Grafana 管理员密码
GRAFANA_ADMIN_PASSWORD=your_grafana_password_here
# ============ Application Config ============
# 日志级别WARNING 或 ERROR
LOG_LEVEL=WARNING
# 最大对话步数
MAX_CONVERSATION_STEPS=10
# 对话超时时间(秒)
CONVERSATION_TIMEOUT=3600
# ============ Security Notes ============
# 1. 所有密钥和密码都必须使用强密码
# 2. 生产环境不要使用默认密码
# 3. 定期轮换 API Token 和密钥
# 4. 使用环境变量管理工具(如 AWS Secrets Manager、Vault 等)
# 5. 不要将 .env.production 文件提交到 Git 仓库