3x-ui 式共享节点改造:nodes 状态机 + nodeClients 各自凭据

- 移除 VMess 协议
- VLESS/SS2022 按用户流量统计(AnyTLS 日志解析,SS 节点级)
- sing-box v2ray_api stats 支持
- 内存优化:面板 128M,agent 64M,sing-box 64M
This commit is contained in:
Muse
2026-10-19 22:23:40 +08:00
parent 1678f766ac
commit 084afeb8f4
35 changed files with 2142 additions and 1749 deletions
-4
View File
@@ -46,10 +46,8 @@ validate() {
activate() {
flush_usage
if command -v systemctl >/dev/null && [[ -d /run/systemd/system ]]; then
systemctl try-restart nexusgate-xray.service || printf 'Xray 重启失败,请运行 ng-agent doctor\n' >&2
systemctl try-restart nexusgate-sing-box.service || printf 'sing-box 重启失败,请运行 ng-agent doctor\n' >&2
elif command -v rc-service >/dev/null; then
rc-service nexusgate-xray status >/dev/null 2>&1 && rc-service nexusgate-xray restart || true
rc-service nexusgate-sing-box status >/dev/null 2>&1 && rc-service nexusgate-sing-box restart || true
fi
printf '证书已安装:%s;有效期:' "$target"
@@ -104,10 +102,8 @@ if [[ -r /etc/nexusgate/agent.env && -f /opt/nexusgate-agent/agent.js ]]; then
fi
fi
if command -v systemctl >/dev/null && [[ -d /run/systemd/system ]]; then
systemctl try-restart nexusgate-xray.service
systemctl try-restart nexusgate-sing-box.service
elif command -v rc-service >/dev/null; then
rc-service nexusgate-xray status >/dev/null 2>&1 && rc-service nexusgate-xray restart || true
rc-service nexusgate-sing-box status >/dev/null 2>&1 && rc-service nexusgate-sing-box restart || true
fi
EOF