aaaamoooo 18bbd388ea feat(web): topbar/nav cleanup batch (items 10-13)
Item 10: remove the disabled decorative topbar search input (each page
has its own working search); CSS rule and media-query reference removed.
Item 11: menu/title renames — 服务器 -> 节点管理, 客户与订阅 -> 用户订阅,
转发与节点 -> 入站&出站, 设置与运维 -> 设置 (nav, TITLES/breadcrumb and
cross-references synced); the chains page add button is now 添加入站 and
its count reads N 个入站; the 安装与命令 page is merged into 设置
(commandsHTML block between the settings grid and the jobs table) and
the page itself is removed from nav, PAGES, TITLES, load() and the view
map — an old #commands hash now lands on the SPA's standard overview
fallback.
Item 12: remove the system page's 最近活动 panel (rendering and its
audit label map plus orphaned CSS); backend audit records untouched.
Item 13: the settings jobs table gets the w-jobs treatment — ID, status
and time cells never wrap, compact row padding, and the error column is
capped at 22% width so an empty error column no longer balloons.

Also fixes a class collision from the item-8 batch: the exit-mode
segmented control is renamed .seg -> .segctl so it no longer draws a
border box around the system page info-bar segments.
Golden re-captured: the only diff is the served index HTML inside
errors.badSubscription, audited character by character as exactly these
renames and removals.
2026-10-21 11:18:00 +08:00
2026-10-21 03:16:31 +08:00

NexusGate(二开版)

基于 NexusGate v0.6.8 的二次开发:3x-ui 式共享节点 + 全面 sing-box 化。主控面板和 Agent 弃用 xray,只用 sing-box,内存占用大幅降低。

架构

  • 主控:Node.js 面板(约 61MB),跑在 OpenWrt 路由器或任意 Linux 上。管理节点、客户、订阅,下发配置到各 Agent。
  • Agent:跑在节点机上,通过 token 注册。管理 sing-box 进程,上报心跳和按用户流量。

与原版的区别

  • 移除 VMess 协议
  • 3x-ui 式共享节点:nodes 状态机 + 每个客户独立凭据(ng:<customerId> 身份)
  • 全面 sing-box:不再捆绑 xray
  • 按用户流量统计:AnyTLS 走日志解析,SS 走节点级
  • 内存优化:面板 node --max-old-space-size=128 --optimize-for-size;Agent 为 Go 静态二进制(约 12MB,节点机无需 Node.js);sing-box GOMEMLIMIT=64MiB GOGC=50

安装

主控

# 克隆仓库
git clone https://git.881218.xyz/rogue/NexusGate.git /opt/nexusgate
cd /opt/nexusgate

# 安装依赖并启动
node --max-old-space-size=128 --optimize-for-size server.js

面板地址:http://IP:8787,默认账号 admin。

OpenWrt 上用 procd 常驻,见 scripts/ 目录。

Agent(节点机)

  1. 在主控面板「服务器」→「添加设备」,填好节点信息
  2. 点该设备的「注册」按钮,复制弹出的一次性注册命令(token 30 分钟内有效)
  3. 在节点机上以 root 运行该命令
curl -fsSL https://git.881218.xyz/rogue/NexusGate/raw/branch/main/scripts/agent-install.sh | bash -s -- --server https://主控域名 --token 你的TOKEN

Agent 是 Go 静态二进制,安装时从 Gitea Release 下载,节点机不再需要安装 Node.js。(如需回退旧版 Node Agent,安装时加环境变量 NG_AGENT_IMPL=node。)

支持的协议

VLESS / SS2022 / SS经典 / SOCKS5 / Hysteria2 / AnyTLS

内存占用(实测 2026-10-20,三台节点机)

组件 内存
主控面板 约 61MB(OpenWrt 路由器)
Agent 约 12MB(Go 静态二进制)
sing-box 16–36MB

License

继承上游 NexusGate

S
Description
No description provided
Readme MIT
745 KiB
2026-10-20 20:00:13 +08:00
Languages
Go 45.9%
JavaScript 45.4%
Shell 5.6%
CSS 2.7%
HTML 0.4%