cbacfea7f2
NexusGuard CI / server-core-test (push) Failing after 3m6s
NexusGuard CI / server-core-build (push) Has been skipped
NexusGuard CI / device-agent-test (push) Failing after 4s
NexusGuard CI / device-agent-cross-build (amd64, linux) (push) Has been skipped
NexusGuard CI / device-agent-cross-build (amd64, windows) (push) Has been skipped
NexusGuard CI / device-agent-cross-build (arm64, linux) (push) Has been skipped
NexusGuard CI / dashboard-test (push) Failing after 4s
NexusGuard CI / dashboard-dist (push) Has been skipped
1.1 KiB
1.1 KiB
Plan: WG Auto Up + PrivateKey Node Registration
TL;DR
Fix WireGuard interface goes down after
update.sh(container restart) and allow registering nodes using PrivateKey (from MikroTik export) instead of requiring PublicKey manually.
Status: ✅ ALL DONE + VERIFIED ON PRODUCTION
TODOs
- 1. main.go: auto
wg upon startup — commit8e476db - 2. servers.go: accept PrivateKey in Create — commit
8e476db - 3. Servers.vue + servers.ts: PrivateKey input — commit
8e770ae - 4. update.sh — SKIPPED (backend auto-init is the real fix)
Final Verification
- F1:
go build -tags dev ./...— PASS - F2:
npm run build— PASS - F3: Server starts,
/wg/statusshows is_running=true — VERIFIED{"IsRunning":true,"PeerCount":1} - F4: Can register node using PrivateKey via API — VERIFIED
PublicKey auto-derived from PrivateKey
Commits
- ✅
8e476db— Backend (auto wg up + accept PrivateKey) - ✅
8e770ae— Frontend (PrivateKey input in Register form) - ✅
4a56516— Root (submodule refs) - ✅ All pushed + deployed to production