# 华尔倍丽生产环境配置
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_hua?charset=utf8mb4
MYSQL_HOST=prod-mysql
MYSQL_PORT=3306
MYSQL_USER=root
MYSQL_PASSWORD=ProdMySQL2025!@#
MYSQL_DATABASE=kaopeilian_hua

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

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

# CORS配置
CORS_ORIGINS=["https://hua.ireborn.com.cn", "http://hua.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 配置

# 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=hua

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