迁移到新账号 aaaamoooo
This commit is contained in:
@@ -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
|
||||
```
|
||||
|
||||
## 支持的协议
|
||||
|
||||
+2
-2
@@ -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 注册 / 重装命令', `<div class="stack"><div class="notice">令牌 30 分钟内有效且只能使用一次。重装会保留本机资源文件,并在 Agent 重启后自动与控制面对账。</div><div class="codebox">${esc(command)}</div><button class="primary" data-action="copy-uri" data-value="${esc(command)}">复制命令</button></div>`);
|
||||
} 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', `<div class="stack"><div class="notice warning">先停用并删除关联节点,让在线 Agent 完成资源清理。卸载会停止 NexusGate 专属服务并移除密钥与节点配置。然后在控制台删除设备登记;离线且有待清理项时使用“遗忘离线设备”。遗忘不会远程卸载机器。</div><div class="codebox">${esc(command)}</div><button data-action="copy-uri" data-value="${esc(command)}">复制命令</button><small>旧版 Agent 没有 ng-agent 命令时,使用下列兼容命令:</small><div class="codebox">${esc(fallback)}</div><button data-action="copy-uri" data-value="${esc(fallback)}">复制兼容命令</button></div>`);
|
||||
}
|
||||
else if (action === 'retry-cleanup') { const result = await api(`/api/servers/${itemId}/cleanup`, { method:'POST', body:'{}' }); toast(result.queued ? `已重新排队 ${result.queued} 个清理任务` : '清理任务已在队列中,请等待设备上线'); await load(); }
|
||||
|
||||
@@ -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=""
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user