From f0b9fad70caca4459ac9b8e7a1e65fc1e5a97018 Mon Sep 17 00:00:00 2001 From: JetSprow Date: Thu, 30 Apr 2026 09:18:05 +1000 Subject: [PATCH] fix: use lite branch for agent install links --- agent/jboard-agent/README.md | 18 +++++++++--------- scripts/install-jboard-agent.sh | 2 +- src/app/(admin)/admin/nodes/node-actions.tsx | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/agent/jboard-agent/README.md b/agent/jboard-agent/README.md index dc5cc3a..0fd7eb0 100644 --- a/agent/jboard-agent/README.md +++ b/agent/jboard-agent/README.md @@ -1,6 +1,6 @@ # jboard-agent -`jboard-agent` 是 J-Board 的节点侧旁路程序。它运行在节点 VPS 上,负责把节点体验和节点真实连接证据上报到 J-Board。 +`jboard-agent` 是 J-Board Lite 的节点侧旁路程序。它运行在节点 VPS 上,负责把节点体验和节点真实连接证据上报到 J-Board Lite。 它做三件事: @@ -16,7 +16,7 @@ - 不接管节点流量。 - 不作为公共代理或透明代理。 -节点入站、客户端开通、暂停、删除、流量限制等配置均由 3x-ui 面板维护。Agent 只读日志文件,并通过 J-Board 的 Agent Token 上报结果。 +节点入站、客户端开通、暂停、删除、流量限制等配置均由 3x-ui 面板维护。Agent 只读日志文件,并通过 J-Board Lite 的 Agent Token 上报结果。 ## 工作方式 @@ -26,16 +26,16 @@ jboard-agent ├─ TraceLoop:定时调用 nexttrace 获取三网路由 └─ XrayAccessLogLoop:读取 Xray access log,聚合真实来源 IP、连接数和不同目标数 ↓ -J-Board /api/agent/* +J-Board Lite /api/agent/* ↓ 后台节点体验、订阅风控、分析日志、风险报告 ``` -Agent 使用 `AUTH_TOKEN` 认证。这个 token 在 J-Board 后台节点页生成,服务端会通过它匹配到具体 `NodeServer`。 +Agent 使用 `AUTH_TOKEN` 认证。这个 token 在 J-Board Lite 后台节点页生成,服务端会通过它匹配到具体 `NodeServer`。 ## 安装 -推荐在 J-Board 后台“节点管理”中点击生成 Agent Token,然后复制弹窗中的一键安装命令到节点机执行。安装脚本会自动完成: +推荐在 J-Board Lite 后台“节点管理”中点击生成 Agent Token,然后复制弹窗中的一键安装命令到节点机执行。安装脚本会自动完成: - 下载 GitHub Release 中对应架构的二进制。 - 校验 `SHA256SUMS`。 @@ -49,19 +49,19 @@ Agent 使用 `AUTH_TOKEN` 认证。这个 token 在 J-Board 后台节点页生 手动安装命令形如: ```bash -curl -fsSL https://raw.githubusercontent.com/JetSprow/J-Board/main/scripts/install-jboard-agent.sh | SERVER_URL=https://panel.example.com AUTH_TOKEN=你的Token bash +curl -fsSL https://raw.githubusercontent.com/JetSprow/J-Board/lite/scripts/install-jboard-agent.sh | SERVER_URL=https://panel.example.com AUTH_TOKEN=你的Token bash ``` 如果需要指定 Agent Release: ```bash -curl -fsSL https://raw.githubusercontent.com/JetSprow/J-Board/main/scripts/install-jboard-agent.sh | AGENT_TAG=v3.0.2 SERVER_URL=https://panel.example.com AUTH_TOKEN=你的Token bash +curl -fsSL https://raw.githubusercontent.com/JetSprow/J-Board/lite/scripts/install-jboard-agent.sh | AGENT_TAG=v3.0.2 SERVER_URL=https://panel.example.com AUTH_TOKEN=你的Token bash ``` ## 升级 ```bash -curl -fsSL https://raw.githubusercontent.com/JetSprow/J-Board/main/scripts/upgrade-jboard-agent.sh | bash +curl -fsSL https://raw.githubusercontent.com/JetSprow/J-Board/lite/scripts/upgrade-jboard-agent.sh | bash ``` 升级脚本会读取现有 `/etc/jboard-agent.env`,保留服务器地址、Token、探测间隔和 Xray 日志配置,并重新写入当前 systemd service。 @@ -82,7 +82,7 @@ journalctl -u jboard-agent -n 30 --no-pager | 变量 | 默认值 | 说明 | | --- | --- | --- | -| `SERVER_URL` | 必填 | J-Board 面板公网地址,例如 `https://panel.example.com`。 | +| `SERVER_URL` | 必填 | J-Board Lite 面板公网地址,例如 `https://panel.example.com`。 | | `AUTH_TOKEN` | 必填 | 后台节点页生成的 Agent Token。 | | `LATENCY_INTERVAL` | `5m` | 延迟探测间隔,支持 `30s`、`5m` 或纯秒数。 | | `TRACE_INTERVAL` | `30m` | 路由探测间隔,支持 `30m` 或纯秒数。 | diff --git a/scripts/install-jboard-agent.sh b/scripts/install-jboard-agent.sh index d107c1b..a8e2faf 100755 --- a/scripts/install-jboard-agent.sh +++ b/scripts/install-jboard-agent.sh @@ -24,7 +24,7 @@ trap cleanup EXIT if [ -z "${SERVER_URL:-}" ] || [ -z "${AUTH_TOKEN:-}" ]; then echo "SERVER_URL and AUTH_TOKEN are required." >&2 echo "Example:" >&2 - echo "curl -fsSL https://raw.githubusercontent.com/${GH_REPO}/main/scripts/install-jboard-agent.sh | SERVER_URL=https://example.com AUTH_TOKEN=token bash" >&2 + echo "curl -fsSL https://raw.githubusercontent.com/${GH_REPO}/lite/scripts/install-jboard-agent.sh | SERVER_URL=https://example.com AUTH_TOKEN=token bash" >&2 exit 1 fi diff --git a/src/app/(admin)/admin/nodes/node-actions.tsx b/src/app/(admin)/admin/nodes/node-actions.tsx index 3676d79..7ac8fcf 100644 --- a/src/app/(admin)/admin/nodes/node-actions.tsx +++ b/src/app/(admin)/admin/nodes/node-actions.tsx @@ -27,7 +27,7 @@ interface NodeActionValue { agentToken: string | null; } -const INSTALL_SCRIPT_URL = "https://raw.githubusercontent.com/JetSprow/J-Board/main/scripts/install-jboard-agent.sh"; +const INSTALL_SCRIPT_URL = "https://raw.githubusercontent.com/JetSprow/J-Board/lite/scripts/install-jboard-agent.sh"; function shellQuote(value: string) { return `'${value.replaceAll("'", `'"'"'`)}'`;