Files
012-kaopeilian/backend/.env.cxw
yuliang_guo 4f6654d864 feat: 新增崔曦文(cxw)租户配置
- 添加 Nginx 配置 cxw.conf
- 添加 docker-compose 容器配置(frontend/backend/redis)
- 添加 .env.cxw 环境配置
- 端口分配: 前端3016, 后端8016, Redis 6396
2026-01-27 10:37:55 +08:00

53 lines
1.3 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.
# 崔曦文生产环境配置
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_cxw?charset=utf8mb4
MYSQL_HOST=prod-mysql
MYSQL_PORT=3306
MYSQL_USER=root
MYSQL_PASSWORD=ProdMySQL2025!@#
MYSQL_DATABASE=kaopeilian_cxw
# Redis配置
REDIS_URL=redis://cxw-redis:6379/0
REDIS_HOST=cxw-redis
REDIS_PORT=6379
REDIS_DB=0
# 安全配置
SECRET_KEY=cxw_8f3a2b1c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2
ALGORITHM=HS256
ACCESS_TOKEN_EXPIRE_MINUTES=30
REFRESH_TOKEN_EXPIRE_DAYS=7
# CORS配置
CORS_ORIGINS=["https://cxw.ireborn.com.cn", "http://cxw.ireborn.com.cn"]
# 公开域名
PUBLIC_DOMAIN=https://cxw.ireborn.com.cn
# 租户标识
TENANT_CODE=cxw
# 管理库连接配置用于从管理库加载AI配置
ADMIN_DB_HOST=prod-mysql
ADMIN_DB_PORT=3306
ADMIN_DB_USER=root
ADMIN_DB_PASSWORD=ProdMySQL2025!@#
ADMIN_DB_NAME=kaopeilian_admin
# Coze 平台配置(可在管理后台统一配置)
COZE_API_BASE=https://api.coze.cn
COZE_PRACTICE_BOT_ID=7560643598174683145
COZE_BROADCAST_WORKFLOW_ID=7577983042284486666
COZE_BROADCAST_SPACE_ID=7474971491470688296
# 日志配置
LOG_LEVEL=INFO
LOG_FORMAT=json