Extract memind_adm admin server, add local dev tooling, and remove image-generation.

Split platform admin and ops APIs into standalone admin-server.mjs with network guards; simplify billing to RMB token pricing, refactor user auth, and add rsync deploy plus local-test scripts and docs.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Your Name
2026-06-17 16:39:39 -07:00
parent ab0718938e
commit b0f5d6a51c
98 changed files with 5394 additions and 3010 deletions
+56
View File
@@ -0,0 +1,56 @@
# ============================================================
# rsync 排除规则:本地 dev → Studio(100) 生产
# 所有列出的路径均相对于项目根目录
# ============================================================
# ── 机密配置(绝不覆盖,Studio 自己维护)──────────────────
.env
# ── 生产用户数据(绝对不能覆盖)──────────────────────────
MindSpace/
data/
users/
# ── 运行时临时文件 ────────────────────────────────────────
temp/
*.pid
.h5.pid
*.log
h5.log
# ── 构建产物(在 Studio 本地构建,不从 dev 覆盖)─────────
node_modules/
ops/node_modules/
dist/
ops/dist/
# ── 版本控制 ──────────────────────────────────────────────
.git/
.gitignore
.DS_Store
# ── 本地开发专用(不上生产)──────────────────────────────
.claude/
.local/
# ── Studio LaunchAgent 启动脚本(由 plist 直接引用,删除即服务无法重启)──
scripts/run-memind-portal-prod.sh
scripts/run-plaza-prod.sh
scripts/memind-fwd-tunnel.sh
scripts/install-prod-services.sh
# ── 生产运营工具(只在 Studio 上使用,dev 无需保留)──────
scripts/compensate-user-billing.mjs
scripts/plaza-demo-posts.mjs
# ── 生产媒体资源(运营上传,dev 仓库不维护)──────────────
public/plaza-covers/
# ── Studio 生产端独立管理的配置(不从 dev 覆盖)──────────
# LB 权重配置直接在 Studio 上用 caddy reload 调整
scripts/g2-lb.Caddyfile
scripts/g2-lb.Caddyfile.active
scripts/g2-lb.Caddyfile.bak-*
# 生产备份,只在 Studio 存在
server.mjs.bak-*
*.bak-20*