baodan/.env.example
2026-07-12 14:17:18 +08:00

98 lines
3.1 KiB
Plaintext
Raw 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.

# ============================================================
# 保险智能客服系统 — 环境变量配置
# 复制为 .env 并填入实际值
# ============================================================
# ---- 数据库(复用 Dify 的 PostgreSQL----
DATABASE_URL=postgresql://dify:dify@db:5432/dify
# ---- Redis复用 Dify 的 Redis----
REDIS_URL=redis://redis:6379/0
# ---- JWT 认证 ----
JWT_SECRET=your-jwt-secret-here-change-this
JWT_EXPIRE_SECONDS=7200
# ---- 邮箱验证码(兼容 Dify 邮件配置)----
MAIL_TYPE=smtp
MAIL_DEFAULT_SEND_FROM=保险智能客服系统 <no-reply@example.com>
SMTP_SERVER=smtp.exmail.qq.com
SMTP_PORT=465
SMTP_USERNAME=no-reply@example.com
SMTP_PASSWORD=your_smtp_password
SMTP_USE_TLS=true
SMTP_OPPORTUNISTIC_TLS=false
# ---- 企微应用 ----
WECOM_CORP_ID=your_corp_id
WECOM_SECRET=your_app_secret
WECOM_TOKEN=your_callback_token
WECOM_AES_KEY=your_aes_encoding_key
# 兼容部分企微文档中的命名;与 WECOM_AES_KEY 二选一即可
# WECOM_ENCODING_AES_KEY=your_aes_encoding_key
# 私聊默认异步主动回复;新版 AI 机器人会优先使用 response_url
WECOM_PRIVATE_ASYNC_REPLY=true
# 单群机器人 Webhook可选多群不要共用一个全局 Webhook
# WECOM_GROUP_WEBHOOK=https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=YOUR_WEBHOOK_KEY
# 允许使用单群 Webhook 兜底;多群生产环境建议保持 false避免误发到固定群
WECOM_GROUP_WEBHOOK_FALLBACK=false
# 多群 Webhook 映射(可选;推荐优先使用企微"群聊会话"按 chatid 发送)
# WECOM_GROUP_WEBHOOKS={"CHAT_ID_A":"https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=KEY_A","CHAT_ID_B":"https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=KEY_B"}
# ---- Dify ----
DIFY_BASE_URL=http://dify-api:5001
DIFY_WEB_URL=http://dify-web:3000
DIFY_CHAT_APP_API_KEY=app-xxxxxxxxxxxx
DIFY_WORKFLOW_APP_API_KEY=app-yyyyyyyyyyyy
DIFY_DATASET_API_KEY=dataset-xxxxxxxxxxxx
# ---- 前端 ----
VITE_API_BASE_URL=/api
VITE_DIFY_EMBED_URL=/dify
# ---- 部署 ----
DOMAIN=localhost
# ---- Docker Compose 独立部署配置 ----
# PostgreSQL
POSTGRES_DB=baodan
POSTGRES_USER=postgres
POSTGRES_PASSWORD=your_password_here
# 应用配置
SECRET_KEY=your_secret_key_here
INIT_PASSWORD=admin123456
LOG_LEVEL=INFO
# API 地址
CONSOLE_API_URL=http://localhost:5001
CONSOLE_WEB_URL=http://localhost:3000
SERVICE_API_URL=http://localhost:5001
APP_WEB_URL=http://localhost:3000
FILES_URL=http://localhost:5001
# 保险模块 API Key需在 BaoDan 后台创建应用后填入)
BAODAN_CHAT_API_KEY=app-your-chat-api-key
BAODAN_WORKFLOW_API_KEY=app-your-workflow-api-key
BAODAN_KB_API_KEY=dataset-your-kb-api-key
# 访客模式
GUEST_MODE=true
# 插件服务
PLUGIN_DAEMON_KEY=your_plugin_daemon_key
# CORS 配置
CONSOLE_CORS_ALLOW_ORIGINS=http://localhost:3000,http://localhost:5001
WEB_API_CORS_ALLOW_ORIGINS=http://localhost:3000,http://localhost:5001
# 管理员配置
ADMIN_EMAIL=admin@example.com
ADMIN_NAME=admin
ADMIN_PASSWORD=your_admin_password
ADMIN_WORKSPACE=BaoDan Workspace
# OAuth 回调地址
BASE_URL=http://localhost:5001
FRONTEND_URL=http://localhost:9080