3x-ui/sub
MHSanaei 36114a2fcc
feat(nodes): multi-node panel orchestration (CRUD, deployment, traffic sync, sub per-node)
- Node model + service + controller (/panel/api/nodes/*) with bearer-token apiToken auth
- Heartbeat job @every 10s; status/latency/xrayVersion surfaced in Nodes UI
- Runtime abstraction (Local + Remote) so inbound/client mutations target the
  inbound's owning node instead of always hitting the local xray
- Inbounds gain optional NodeID; tag-based correlation with remote panel (no
  RemoteInboundID column needed)
- NodeTrafficSyncJob @every 10s pulls absolute counters + online/lastOnline
  from each enabled+online node and writes them into central DB; 30s reset
  grace window prevents post-reset overwrite
- Reset propagation to nodes (best-effort) on client/inbound/all reset paths
- Subscription server uses node.Address for inbounds with NodeID, falling back
  to existing host resolution for local inbounds
- Frontend: Nodes page, "Deploy to" select in inbound form, Node column on
  inbound list, hostOverride threaded through genAllLinks/QR/Info modals

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-09 15:25:29 +02:00
..
default.json dokodemo-door, socks renamed to mixed, tunnel 2025-09-09 13:57:40 +02:00
sub.go feat(frontend): migrate subpage.html to Vue 3 SPA 2026-05-08 19:44:50 +02:00
subClashService.go feat(nodes): multi-node panel orchestration (CRUD, deployment, traffic sync, sub per-node) 2026-05-09 15:25:29 +02:00
subController.go revert(frontend): keep entry HTML files at frontend/ root 2026-05-09 02:36:26 +02:00
subJsonService.go feat(nodes): multi-node panel orchestration (CRUD, deployment, traffic sync, sub per-node) 2026-05-09 15:25:29 +02:00
subService.go feat(nodes): multi-node panel orchestration (CRUD, deployment, traffic sync, sub per-node) 2026-05-09 15:25:29 +02:00