mirror of
https://github.com/JetSprow/J-Board-Lite.git
synced 2026-05-01 01:14:10 +05:30
fix: use lite branch for agent install links
This commit is contained in:
@@ -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` 或纯秒数。 |
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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("'", `'"'"'`)}'`;
|
||||
|
||||
Reference in New Issue
Block a user