上线版: 产品表单统一+form嵌套修复+用户管理+部署+三套叙事

- 产品编辑入口统一走 ProductFormFull(卖点/风格/人群/品牌词全字段);
  修复开任务页 <form> 套 <form> 致"编辑产品"报错、改不了、跳回首个产品
- dashboard 入口卡片对齐实际路由: 系统管理(/config) 与 工作配置(/settings) 分开;
  settings ?tab=products 直达改用挂载后读 URL, 消除 hydration mismatch
- 新增用户管理(users API/admin service/改密页) + alembic 022/023/024
- 上线部署: Dockerfile / docker-compose.prod+https / nginx https / .env.example
- A8 三套正交叙事(痛点/场景/成分背书) + beige 调色去AI化 + 飞轮 text_import 高权重信号

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
yangqianqian
2026-06-30 18:08:13 +08:00
parent a77212781c
commit df1856d793
150 changed files with 8616 additions and 1765 deletions

26
backend/.env.example Normal file
View File

@@ -0,0 +1,26 @@
APP_ENV=production
FERNET_KEY=replace-with-32-plus-character-fernet-key
JWT_SECRET=replace-with-32-plus-character-jwt-secret
DATABASE_URL=mysql+pymysql://clover:replace-with-strong-db-password@mysql:3306/clover
MONGO_URI=mongodb://mongo:27017/clover_trace
REDIS_URL=redis://redis:6379/0
# Production should use the real customer domain(s). Do not use "*" in production.
CORS_ALLOW_ORIGINS=https://your-domain.example
IMAGE_PROVIDER_PRIMARY=gpt
IMAGE_PROVIDER_FALLBACK=gemini
IMAGE_MODEL=gpt-image-2
MODEL_IMAGE=gpt-image-2
MODEL_TEXT=claude-opus-4-8
APIPORTS_BASE_URL=https://api.apiyi.com/v1
CODEPROXY_BASE_URL=
GEMINI_API_URL=https://generativelanguage.googleapis.com/v1beta
APIPORTS_KEY=
CODEPROXY_KEY=
MAX_CONCURRENT_TASKS_PER_USER=5
UVICORN_WORKERS=2
UPLOAD_BASE_PATH=uploads/packages
UPLOAD_ABS_ROOT=/app/uploads