准备工作
api.example.com 主控接口
dash.nodeget.com 使用官方后台管理面板
status.example.com 公开探针页面
安装 NodeGet Server
bash <(curl -sL https://install.nodeget.com) install-server --tunnel false
安装完成后,终端里会出现类似 SuperToken / 根 Token / 管理 Token 的东西,一定要复制保存好。它后面登录 Dashboard 要用。
Cloudflare 添加 DNS
- api.example.com
- 开启小云朵
Cloudflare SSL 设置
- SSL/TLS -> Overview -> Flexible
Cloudflare 添加 Origin Rule
- Rules -> Origin Rules -> Create rule
- 规则名称随便写,例如:NodeGet API 2211
- 匹配条件选择:Hostname equals api.example.com
- 然后设置:Destination Port / Origin Port = 2211


官方 Dashboard 添加主控
- 打开:https://dash.nodeget.com
- 添加主控:Server 地址:wss://api.example.com
- Token:你的 SuperToken / 管理 Token
创建公开探针 Visitor Token
- 在官方 Dashboard 里进入:Token -> 创建 Token
- 模板:Visitor 作用域:全局 权限:保持默认
下载最新的构建压缩包
- 打开这个页面下载最新的构建压缩包。
- 解压压缩包,找到里面的config.json,用记事本打开
- 修改 config.json
{
"site_name": "NodeGet Status",
"site_logo": "",
"theme_name": "default",
"theme_repo": "",
"theme_config": {
"footer": "Powered by NodeGet"
},
"site_tokens": [
{
"name": "Server",
"backend_url": "wss://api.example.com",
"token": "这里填你的VisitorToken"
}
]
}
- 修改完 config.json 后,把解压出来的所有文件重新压缩成一个 zip。
通过 Cloudflare Pages 创建 Status 页面
- Cloudflare 后台进入:Workers & Pages -> Create application -> Upload your static files
- 注意:需要上传ZIP格式,不支持RAR
绑定 status.example.com
在刚刚的Workers 和 Pages 域和路由 添加自定义域。
日志调error 适用minivps
sed -i 's/^log_level = "warn"/log_level = "error"/' /etc/nodeget-server.toml
sed -i 's/^jsonrpc_timing_log_level = "warn"/jsonrpc_timing_log_level = "error"/' /etc/nodeget-server.toml
sed -i 's/^sqlx_log_level = "warn"/sqlx_log_level = "error"/' /etc/nodeget-server.toml
grep -n "log_level" /etc/nodeget-server.toml
systemctl restart nodeget-server
systemctl status nodeget-server --no-pager
清空现有日志
truncate -s 0 /var/log/nodeget-server/*.log /var/log/nodeget-agent/*.log
ls -lh /var/log/nodeget-server /var/log/nodeget-agent
