Initial commit: 智能项目定价模型

This commit is contained in:
kuzma
2026-01-31 21:33:06 +08:00
commit ef0824303f
174 changed files with 31705 additions and 0 deletions

57
env.example Normal file
View File

@@ -0,0 +1,57 @@
# 智能项目定价模型 - 环境变量配置模板
# 复制此文件为 .env 并修改配置值
# 重要:.env 文件权限应设置为 600 (chmod 600 .env)
# ============================================================
# 应用配置
# ============================================================
APP_NAME=智能项目定价模型
APP_VERSION=1.0.0
APP_ENV=production
DEBUG=false
# 密钥(生产环境请修改为随机字符串)
SECRET_KEY=your-secret-key-change-in-production-use-random-string
# ============================================================
# 数据库配置
# MySQL 8.0, utf8mb4, utf8mb4_unicode_ci
# ============================================================
DATABASE_URL=mysql+aiomysql://pricing_user:your_password@pricing-mysql:3306/pricing_model?charset=utf8mb4
# MySQL 容器配置
MYSQL_ROOT_PASSWORD=your_root_password
MYSQL_USER=pricing_user
MYSQL_PASSWORD=your_password
# 连接池配置
DB_POOL_SIZE=5
DB_MAX_OVERFLOW=10
DB_POOL_RECYCLE=3600
# ============================================================
# 门户系统配置
# AI Key 从门户系统获取(禁止硬编码)
# ============================================================
PORTAL_CONFIG_API=http://portal-backend:8000/api/ai/internal/config
# ============================================================
# AI 服务配置
# ============================================================
AI_MODULE_CODE=pricing_model
# ============================================================
# 时区配置
# ============================================================
TIMEZONE=Asia/Shanghai
# ============================================================
# CORS 配置
# 生产环境应限制为具体域名
# ============================================================
CORS_ORIGINS=["https://pricing.example.com"]
# ============================================================
# API 配置
# ============================================================
API_V1_PREFIX=/api/v1