nomadro/.cursor/rules/admin-hosts-never-confuse.mdc
Eric 1dac5fd5fd Sync vip.hackrobot.cn and admin.hackrobot.cn into apps/hackrobot with mandatory server backups.
Keep VIP stack isolated from Nomadro admin; pull/deploy scripts always snapshot /opt/hackrobot-backup first.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-22 10:48:49 +08:00

28 lines
1.6 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 管理后台域名:永远禁止混淆
## 铁律
**`https://admin.hackrobot.cn/` 与 `https://admin.nomadro.cn/` 永远不允许混淆。**
改后台、部署、反代、注入脚本、鉴权、文档时必须先认域名;禁止把 A 的包/API/文案套到 B。
| 域名 | 产品 | 后端 | 源码 / 产物 | 鉴权 |
|------|------|------|-------------|------|
| **admin.hackrobot.cn** | **VIP 运营台**(`vip.hackrobot.cn`) | `/api/ops` → nomadvip `:4007`;`/api/admin/live/*` → nomadmini `:8010` | **`apps/hackrobot/admin-site/`**(勿用 Nomadro 微信壳覆盖) | `vip_ops_token`(HMAC) |
| **admin.nomadro.cn** | Nomadro 中国站后台(微信 / 抖音) | Nomadro API / PocketBase | `apps/admin` → admin.nomadro.cn | ebook/admin JWT |
| admin.nomadro.com | Nomadro 国际站后台(仅 Web) | `.com` API | `apps/com/admin` | `.com` admin 会话 |
VIP 前台源码:`apps/hackrobot/vip/`(线上 `/www/wwwroot/nomadvip`)。同步/发版/强制备份见 `apps/hackrobot/README.md` 与 `hackrobot-vip-git.mdc`。
## 禁止
- 把 `apps/admin`(微信/抖音壳)部署成 `admin.hackrobot.cn`
- 把 VIP 运营台 `/api` 整站指到 `:8010` 导致 `/api/ops` 失效
- 用 UI locale /「都叫 admin」假定两边同一套用户、拉黑、LIVE、支付
- 在文档或脚本里用「管理后台」不写全称域名
## 正确习惯
- VIP LIVE / 拉黑存档 / 线索 → 只谈 **admin.hackrobot.cn** + **vip.hackrobot.cn**
- 微信小程序运营 / 抖音模块 → 只谈 **admin.nomadro.cn** + `apps/admin`
- 国际 Web 运营 → **admin.nomadro.com** + `apps/com/admin`