# 恩喜成都总院生产环境配置
APP_NAME="恩喜成都总院-考培练系统"
APP_VERSION="1.0.0"
DEBUG=false
HOST=0.0.0.0
PORT=8000

# 数据库配置 - 共享MySQL实例
DATABASE_URL=mysql+aiomysql://root:ProdMySQL2025%21%40%23@prod-mysql:3306/kaopeilian_ex?charset=utf8mb4
MYSQL_HOST=prod-mysql
MYSQL_PORT=3306
MYSQL_USER=root
MYSQL_PASSWORD=ProdMySQL2025!@#
MYSQL_DATABASE=kaopeilian_ex

# Redis配置
REDIS_URL=redis://ex-redis:6379/0
REDIS_HOST=ex-redis
REDIS_PORT=6379
REDIS_DB=0

# 安全配置
SECRET_KEY=ex_8f7a9c3e1b4d6f2a5c8e7b9d1f3a6c4e8b2d5f7a9c1e3b6d8f2a4c7e9b1d3f5a
ALGORITHM=HS256
ACCESS_TOKEN_EXPIRE_MINUTES=30
REFRESH_TOKEN_EXPIRE_DAYS=7

# CORS配置
CORS_ORIGINS=["https://ex.ireborn.com.cn", "http://ex.ireborn.com.cn"]

# 日志配置
LOG_LEVEL=INFO
LOG_FORMAT=json

# 文件上传配置
UPLOAD_MAX_SIZE=10485760
UPLOAD_ALLOWED_TYPES=["image/jpeg", "image/png", "application/pdf", "audio/mpeg", "audio/wav", "audio/webm"]
UPLOAD_DIR=uploads

# Coze OAuth配置
COZE_OAUTH_CLIENT_ID=1114009328887
COZE_OAUTH_PUBLIC_KEY_ID=GGs9pw0BDHx2k9vGGehUyRgKV-PyUWLBncDs-YNNN_I
COZE_OAUTH_PRIVATE_KEY_PATH=/app/secrets/coze_private_key.pem
COZE_PRACTICE_BOT_ID=7560643598174683145

# Dify 工作流 API Key 配置
# 01-知识点分析
# 02-试题生成器
# 03-陪练知识准备
# 04-与课程对话
# 05-智能工牌能力分析与课程推荐

# Coze 播课配置
COZE_BROADCAST_WORKFLOW_ID=7577978749833838602
COZE_BROADCAST_SPACE_ID=7474971491470688296
COZE_BROADCAST_BOT_ID=7560643598174683145

# AI 服务配置（知识点分析 V2 - 测试阶段 Key）
AI_PRIMARY_API_KEY=sk-9yMCXjRGANbacz20kJY8doSNy6Rf446aYwmgGIuIXQ7DAyBw
AI_PRIMARY_BASE_URL=https://4sapi.com/v1
AI_FALLBACK_API_KEY=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
AI_FALLBACK_BASE_URL=https://openrouter.ai/api/v1
AI_DEFAULT_MODEL=gemini-3-flash-preview
AI_TIMEOUT=120

# 租户配置（用于多租户部署）
TENANT_CODE=ex

# 管理库连接配置（用于从 tenant_configs 表读取配置）
ADMIN_DB_HOST=prod-mysql
ADMIN_DB_PORT=3306
ADMIN_DB_USER=root
ADMIN_DB_PASSWORD=ProdMySQL2025!@#
ADMIN_DB_NAME=kaopeilian_admin
