From 0c0c56b18ebbb50fd5eb183c5aed834b559f5711 Mon Sep 17 00:00:00 2001 From: "Logan.Li" Date: Mon, 14 Sep 2026 21:08:39 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E7=AE=A1=E7=90=86=E5=90=8E=E5=8F=B0?= =?UTF-8?q?=E5=AF=86=E7=A0=81=E5=87=BA=E5=BA=93=EF=BC=8C=E8=A1=A5=E5=85=85?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=99=A8=E7=8E=AF=E5=A2=83=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AGENTS.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index 3a92f2a..08ff1b0 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -83,3 +83,18 @@ internal/model/ GORM 模型(扁平包,按域分文件) - 生产环境(`release` 模式)必须设置 `JWT_SECRET`,否则启动失败。 - CORS 使用显式白名单,禁止 `*`。 - 默认账号 `admin/admin` 必须在部署后修改。 + +## 服务器环境(已验证可连) + +三台机器均可用本机 SSH 密钥登录,部署路径统一为 `/srv/opsx-licence`(容器 9001 端口,`GIN_MODE=release`)。 + +| 机器 | SSH | 角色 | +|---|---|---| +| 42.193.242.65(opsx-core) | `ssh root@42.193.242.65`(22 端口) | 应用服务器,域名 `https://licence.rlwj.cn`,容器绑 `127.0.0.1:9001` | +| 47.243.95.12(pub-monitor) | `ssh root@47.243.95.12 -p 1022`(**注意非标端口**) | 应用服务器,内网 IP `192.168.14.7`,容器绑 `0.0.0.0:9001` | +| 47.243.187.100(test-hk-web,香港) | `ssh root@47.243.187.100`(22 端口) | nginx 反代,`l123.91ai.io` → `proxy_pass http://192.168.14.7:9001` | + +- 两个管理后台地址:`https://licence.rlwj.cn` 与 `https://l123.91ai.io`,登录账号 **admin**(密码不写入仓库,向 Logan 索取或查密码管理器;泄露或遗忘时可在服务器容器内重置)。 +- 管理后台登录接口:`POST /api/auth/login`(IP 限流 + 账号级锁定,勿频繁请求)。 +- 两套环境 `JWT_SECRET` 各自独立,互不通用。 +- 47.243.95.12 的 SSH 端口 22 不通,只有 1022;外网仅开放必要端口,由云安全组控制。