baseline: Clover 独立仓库首次基线提交

将 Clover 从上层产品包旧仓库中独立出来,建立专属版本控制。
当前状态=纵切片端到端已打通(登录→选品→出文出图→审核→下载包),
M1文案质量去套路化已验收。此提交作为后续按核销清单逐条修复的基线。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
yangqianqian
2026-06-16 11:30:22 +08:00
commit 6a2632da70
253 changed files with 27467 additions and 0 deletions

36
backend/nginx/nginx.conf Normal file
View File

@@ -0,0 +1,36 @@
# nginx/nginx.conf — Clover 反向代理配置
# SSE 端点需关闭 proxy_buffering 才能实时透传
server {
listen 80;
server_name _;
# ── SSE 端点:关闭缓冲,实时透传 ──────────────────
location ~* /api/v1/tasks/[^/]+/stream {
proxy_pass http://api:8000;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_buffering off;
proxy_cache off;
proxy_read_timeout 3600s;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Authorization $http_authorization;
}
# ── 普通 API 端点 ──────────────────────────────────
location /api/ {
proxy_pass http://api:8000;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Authorization $http_authorization;
client_max_body_size 20m;
}
# ── 健康检查 ───────────────────────────────────────
location /health {
proxy_pass http://api:8000/health;
}
}