From 823d0290e2987b1a2fea98c26f2589d7ff72540b Mon Sep 17 00:00:00 2001 From: Muse Date: Tue, 20 Oct 2026 12:33:22 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=81=E7=A7=BB=E5=88=B0=E6=96=B0=E8=B4=A6?= =?UTF-8?q?=E5=8F=B7=20aaaamoooo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- public/app.js | 4 ++-- scripts/agent-install.sh | 2 +- scripts/agent-singbox.sh | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index e651a61..01a85b5 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ ```bash # 克隆仓库 -git clone https://github.com/imamoxilin/NexusGate.git /opt/nexusgate +git clone https://github.com/aaaamoooo/NexusGate.git /opt/nexusgate cd /opt/nexusgate # 安装依赖并启动 @@ -39,7 +39,7 @@ OpenWrt 上用 procd 常驻,见 `scripts/` 目录。 3. 在节点机上以 root 运行该命令 ```bash -curl -fsSL https://raw.githubusercontent.com/imamoxilin/NexusGate/main/scripts/agent-install.sh | bash -s -- --server https://主控域名 --token 你的TOKEN +curl -fsSL https://raw.githubusercontent.com/aaaamoooo/NexusGate/main/scripts/agent-install.sh | bash -s -- --server https://主控域名 --token 你的TOKEN ``` ## 支持的协议 diff --git a/public/app.js b/public/app.js index f2cc7b5..e9cd803 100644 --- a/public/app.js +++ b/public/app.js @@ -531,7 +531,7 @@ document.addEventListener('click', async (event) => { toast('分配已移除'); const node = state.nodes.find((item) => item.id === itemId); await load('chains'); nodeClientsModal(state.nodes.find((item) => item.id === node.id)); } else if (action === 'enroll-server') { const result = await api(`/api/servers/${itemId}/enrollment-token`, { method:'POST', body:'{}' }); - const command = `curl -fsSL https://raw.githubusercontent.com/imamoxilin/NexusGate/main/scripts/agent-install.sh | bash -s -- --server ${location.origin} --token ${result.token}`; + const command = `curl -fsSL https://raw.githubusercontent.com/aaaamoooo/NexusGate/main/scripts/agent-install.sh | bash -s -- --server ${location.origin} --token ${result.token}`; modal('ONE-TIME ENROLLMENT', 'Agent 注册 / 重装命令', `
令牌 30 分钟内有效且只能使用一次。重装会保留本机资源文件,并在 Agent 重启后自动与控制面对账。
${esc(command)}
`); } else if (action === 'copy-uri') { await copyText(button.dataset.value); toast('已复制到剪贴板'); } else if (action === 'qr-uri') { @@ -542,7 +542,7 @@ document.addEventListener('click', async (event) => { } else if (action === 'agent-uninstall') { const command = 'ng-agent uninstall'; - const fallback = 'curl -fsSL https://raw.githubusercontent.com/imamoxilin/NexusGate/main/scripts/agent-uninstall.sh | bash'; + const fallback = 'curl -fsSL https://raw.githubusercontent.com/aaaamoooo/NexusGate/main/scripts/agent-uninstall.sh | bash'; modal('AGENT MAINTENANCE', '在目标服务器 SSH 卸载 Agent', `
先停用并删除关联节点,让在线 Agent 完成资源清理。卸载会停止 NexusGate 专属服务并移除密钥与节点配置。然后在控制台删除设备登记;离线且有待清理项时使用“遗忘离线设备”。遗忘不会远程卸载机器。
${esc(command)}
旧版 Agent 没有 ng-agent 命令时,使用下列兼容命令:
${esc(fallback)}
`); } else if (action === 'retry-cleanup') { const result = await api(`/api/servers/${itemId}/cleanup`, { method:'POST', body:'{}' }); toast(result.queued ? `已重新排队 ${result.queued} 个清理任务` : '清理任务已在队列中,请等待设备上线'); await load(); } diff --git a/scripts/agent-install.sh b/scripts/agent-install.sh index 059d789..9125d80 100755 --- a/scripts/agent-install.sh +++ b/scripts/agent-install.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -Eeuo pipefail -REPO="${NG_REPO:-imamoxilin/NexusGate}" +REPO="${NG_REPO:-aaaamoooo/NexusGate}" BRANCH="${NG_BRANCH:-main}" CONTROLLER="" TOKEN="" diff --git a/scripts/agent-singbox.sh b/scripts/agent-singbox.sh index 6f83537..2b3a9b9 100644 --- a/scripts/agent-singbox.sh +++ b/scripts/agent-singbox.sh @@ -24,7 +24,7 @@ try_prebuilt() { *) return 1 ;; esac release_tag="${NG_SINGBOX_RELEASE:-sing-box-v1.13.21}" - base_url="https://github.com/imamoxilin/NexusGate/releases/download/${release_tag}" + base_url="https://github.com/aaaamoooo/NexusGate/releases/download/${release_tag}" tmp_bin="$(mktemp /tmp/nexusgate-singbox-bin.XXXXXX)" tmp_stats="$(mktemp /tmp/nexusgate-singbox-stats.XXXXXX)" trap 'rm -f -- "$tmp_bin" "$tmp_stats"' RETURN