explore.write POST/PUT · create→draft · status 仍 ECR-008 · migration 000055 · Loop STOP Co-authored-by: Cursor <cursoragent@cursor.com>
admin-h5
运营后台(内容库、订单、会员)。Phase A(ECR-006):登录 · 用户 · 订单 · 会员授予 · 审计。
# 根目录
npm install
npm run dev:admin
# http://localhost:5174/
生产路径:https://jackyu66.com/psy/admin/(静态 :8003 + 共用 /psy/api/ → Go :8080)。
Nginx(需 root 编辑并 reload)
在 jackyu66.com 的 HTTPS server 里,放在 location /psy/ 之前增加:
# 运营后台静态(user systemd: yuxingu-admin → 127.0.0.1:8003)
location /psy/admin/ {
proxy_pass http://127.0.0.1:8003/;
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 X-Forwarded-Proto $scheme;
}
# 问答 SSE:关闭缓冲(建议一并改现有 /psy/api/)
location /psy/api/ {
proxy_pass http://127.0.0.1:8080/api/;
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 X-Forwarded-Proto $scheme;
proxy_set_header Connection "";
proxy_buffering off;
proxy_cache off;
proxy_read_timeout 120s;
}
然后:
sudo nginx -t && sudo systemctl reload nginx
本机已可用(无需 sudo):
npm run build:admin
systemctl --user enable --now yuxingu-admin.service
# 校验:curl -sS -o /dev/null -w '%{http_code}\n' http://127.0.0.1:8003/
默认管理员:见 apps/api/config.example.yaml → admin.bootstrap_*(仅空库种子)。