diff --git a/README.md b/README.md index 5da6115..6215455 100644 --- a/README.md +++ b/README.md @@ -21,19 +21,19 @@ Linux / macOS: ```bash -curl -fsSL https://raw.githubusercontent.com/imengying/NodeFlare/main/install.sh | sudo sh +curl -fsSL https://raw.githubusercontent.com/elysia62/NodeFlare/main/install.sh | sudo sh ``` FreeBSD: ```sh -fetch -qo - https://raw.githubusercontent.com/imengying/NodeFlare/main/install.sh | sudo sh +fetch -qo - https://raw.githubusercontent.com/elysia62/NodeFlare/main/install.sh | sudo sh ``` Windows PowerShell(管理员): ```powershell -Invoke-WebRequest -UseBasicParsing https://raw.githubusercontent.com/imengying/NodeFlare/main/install.ps1 -OutFile "$env:TEMP\nodeflare-install.ps1" +Invoke-WebRequest -UseBasicParsing https://raw.githubusercontent.com/elysia62/NodeFlare/main/install.ps1 -OutFile "$env:TEMP\nodeflare-install.ps1" Unblock-File "$env:TEMP\nodeflare-install.ps1" & "$env:TEMP\nodeflare-install.ps1" ``` @@ -54,9 +54,9 @@ nodeflare.example.com { ```bash # Linux / macOS -curl -fsSL https://raw.githubusercontent.com/imengying/NodeFlare/main/install.sh | sudo sh -s -- --uninstall +curl -fsSL https://raw.githubusercontent.com/elysia62/NodeFlare/main/install.sh | sudo sh -s -- --uninstall # FreeBSD -fetch -qo - https://raw.githubusercontent.com/imengying/NodeFlare/main/install.sh | sudo sh -s -- --uninstall +fetch -qo - https://raw.githubusercontent.com/elysia62/NodeFlare/main/install.sh | sudo sh -s -- --uninstall ``` Linux 常用 systemd 命令: @@ -74,7 +74,7 @@ journalctl -u nodeflare -f Linux: ```bash -curl -fsSL https://raw.githubusercontent.com/imengying/NodeFlare/main/agent/agent.sh \ +curl -fsSL https://raw.githubusercontent.com/elysia62/NodeFlare/main/agent/agent.sh \ | sudo sh -s -- -e 'https://nodeflare.example.com' -t 'Agent Token' ``` @@ -82,17 +82,17 @@ curl -fsSL https://raw.githubusercontent.com/imengying/NodeFlare/main/agent/agen ```bash # macOS ARM64 -curl -fsSL https://raw.githubusercontent.com/imengying/NodeFlare/main/agent/install-macos.sh \ +curl -fsSL https://raw.githubusercontent.com/elysia62/NodeFlare/main/agent/install-macos.sh \ | sudo sh -s -- -e 'https://nodeflare.example.com' -t 'Agent Token' # FreeBSD -fetch -qo - https://raw.githubusercontent.com/imengying/NodeFlare/main/agent/install-freebsd.sh \ +fetch -qo - https://raw.githubusercontent.com/elysia62/NodeFlare/main/agent/install-freebsd.sh \ | sudo sh -s -- -e 'https://nodeflare.example.com' -t 'Agent Token' ``` Windows PowerShell(管理员): ```powershell -Invoke-WebRequest -UseBasicParsing https://raw.githubusercontent.com/imengying/NodeFlare/main/agent/install.ps1 -OutFile "$env:TEMP\nodeflare-agent-install.ps1" +Invoke-WebRequest -UseBasicParsing https://raw.githubusercontent.com/elysia62/NodeFlare/main/agent/install.ps1 -OutFile "$env:TEMP\nodeflare-agent-install.ps1" Unblock-File "$env:TEMP\nodeflare-agent-install.ps1" & "$env:TEMP\nodeflare-agent-install.ps1" -e "https://nodeflare.example.com" -t "Agent Token" ``` @@ -100,17 +100,17 @@ Unblock-File "$env:TEMP\nodeflare-agent-install.ps1" 更新(自动沿用已安装的服务地址、Token 和保存间隔),网络受限时可加下载加速前缀 `-m https://ghproxy.net`: ```bash -curl -fsSL https://raw.githubusercontent.com/imengying/NodeFlare/main/agent/agent.sh | sudo sh -s -- --update +curl -fsSL https://raw.githubusercontent.com/elysia62/NodeFlare/main/agent/agent.sh | sudo sh -s -- --update # macOS ARM64 -curl -fsSL https://raw.githubusercontent.com/imengying/NodeFlare/main/agent/install-macos.sh | sudo sh -s -- --update +curl -fsSL https://raw.githubusercontent.com/elysia62/NodeFlare/main/agent/install-macos.sh | sudo sh -s -- --update # FreeBSD -fetch -qo - https://raw.githubusercontent.com/imengying/NodeFlare/main/agent/install-freebsd.sh | sudo sh -s -- --update +fetch -qo - https://raw.githubusercontent.com/elysia62/NodeFlare/main/agent/install-freebsd.sh | sudo sh -s -- --update ``` Windows 管理员 PowerShell(先重新下载最新脚本): ```powershell -Invoke-WebRequest -UseBasicParsing https://raw.githubusercontent.com/imengying/NodeFlare/main/agent/install.ps1 -OutFile "$env:TEMP\nodeflare-agent-install.ps1" +Invoke-WebRequest -UseBasicParsing https://raw.githubusercontent.com/elysia62/NodeFlare/main/agent/install.ps1 -OutFile "$env:TEMP\nodeflare-agent-install.ps1" Unblock-File "$env:TEMP\nodeflare-agent-install.ps1" & "$env:TEMP\nodeflare-agent-install.ps1" -Update ``` @@ -128,7 +128,7 @@ Linux systemd 下,请通过 SSH 或本机终端重装、手动更新或卸载 Agent 服务名为 `nodeflare-agent`,卸载: ```bash -curl -fsSL https://raw.githubusercontent.com/imengying/NodeFlare/main/agent/agent.sh | sudo sh -s -- --uninstall +curl -fsSL https://raw.githubusercontent.com/elysia62/NodeFlare/main/agent/agent.sh | sudo sh -s -- --uninstall ``` ## 配置 @@ -183,7 +183,7 @@ SQLite / PostgreSQL 首次启动时自动创建数据库结构。ZIP 恢复会 ## 从源码开发 ```bash -git clone https://github.com/imengying/NodeFlare.git +git clone https://github.com/elysia62/NodeFlare.git cd NodeFlare bun install --frozen-lockfile cp backend/config.example.toml backend/config.toml diff --git a/agent/Cargo.toml b/agent/Cargo.toml index 0630694..12f0f9b 100644 --- a/agent/Cargo.toml +++ b/agent/Cargo.toml @@ -4,7 +4,7 @@ version = "1.0.0" edition = "2024" license = "MIT" description = "Independent Rust telemetry agent for NodeFlare" -repository = "https://github.com/imengying/NodeFlare" +repository = "https://github.com/elysia62/NodeFlare" [dependencies] clap = { version = "4.6", default-features = false, features = ["derive", "std", "help", "usage", "error-context", "suggestions"] } diff --git a/agent/agent.sh b/agent/agent.sh index b7818ae..601f7eb 100644 --- a/agent/agent.sh +++ b/agent/agent.sh @@ -262,7 +262,7 @@ install_agent() { trap 'exit 130' INT trap 'exit 143' TERM artifact="agent-linux-$arch-$libc" - release_api="https://api.github.com/repos/imengying/NodeFlare/releases/latest" + release_api="https://api.github.com/repos/elysia62/NodeFlare/releases/latest" log "正在获取 GitHub 最新正式版本($artifact)" release_json=$(curl --fail --location --silent --show-error --max-time 30 \ -H 'Accept: application/vnd.github+json' \ @@ -291,7 +291,7 @@ install_agent() { } ') [ -n "$expected" ] || fail "Release 缺少 $artifact 的 SHA-256 摘要" - release_base="https://github.com/imengying/NodeFlare/releases/download/$release_tag" + release_base="https://github.com/elysia62/NodeFlare/releases/download/$release_tag" download_url="$release_base/$artifact" if [ -n "$mirror" ]; then download_url="$mirror/$release_base/$artifact" diff --git a/agent/install-freebsd.sh b/agent/install-freebsd.sh index 82da72f..532064e 100755 --- a/agent/install-freebsd.sh +++ b/agent/install-freebsd.sh @@ -218,7 +218,7 @@ trap 'exit 129' HUP trap 'exit 130' INT trap 'exit 143' TERM artifact="agent-freebsd-$arch" -release_api="https://api.github.com/repos/imengying/NodeFlare/releases/latest" +release_api="https://api.github.com/repos/elysia62/NodeFlare/releases/latest" log "正在获取 GitHub 最新正式版本($artifact)" release_json=$(download_stdout "$release_api") release_tag=$(printf '%s\n' "$release_json" | tr ',' '\n' | sed -n 's/.*"tag_name"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p' | head -n 1) @@ -242,7 +242,7 @@ expected=$(printf '%s\n' "$release_json" | tr '{' '\n' | awk -v name="$artifact" } ') [ -n "$expected" ] || fail "Release 缺少 $artifact 的 SHA-256 摘要" -release_base="https://github.com/imengying/NodeFlare/releases/download/$release_tag" +release_base="https://github.com/elysia62/NodeFlare/releases/download/$release_tag" download_url="$release_base/$artifact" if [ -n "$mirror" ]; then download_url="$mirror/$release_base/$artifact" diff --git a/agent/install-macos.sh b/agent/install-macos.sh index 160bbbf..7852623 100644 --- a/agent/install-macos.sh +++ b/agent/install-macos.sh @@ -192,7 +192,7 @@ trap 'exit 129' HUP trap 'exit 130' INT trap 'exit 143' TERM artifact="agent-macos-aarch64" -release_api="https://api.github.com/repos/imengying/NodeFlare/releases/latest" +release_api="https://api.github.com/repos/elysia62/NodeFlare/releases/latest" log "正在获取 GitHub 最新正式版本($artifact)" release_json=$(curl --fail --location --silent --show-error --max-time 30 \ -H 'Accept: application/vnd.github+json' \ @@ -219,7 +219,7 @@ expected=$(printf '%s\n' "$release_json" | tr '{' '\n' | awk -v name="$artifact" } ') [ -n "$expected" ] || fail "Release 缺少 $artifact 的 SHA-256 摘要" -release_base="https://github.com/imengying/NodeFlare/releases/download/$release_tag" +release_base="https://github.com/elysia62/NodeFlare/releases/download/$release_tag" download_url="$release_base/$artifact" if [ -n "$mirror" ]; then download_url="$mirror/$release_base/$artifact" diff --git a/agent/install.ps1 b/agent/install.ps1 index b608988..e8ed7e9 100644 --- a/agent/install.ps1 +++ b/agent/install.ps1 @@ -168,7 +168,7 @@ if ($LASTEXITCODE -ne 0) { Write-InstallError "无法限制程序目录权限" } & icacls.exe $StateDir /inheritance:r /grant:r '*S-1-5-18:(OI)(CI)F' '*S-1-5-32-544:(OI)(CI)F' | Out-Null if ($LASTEXITCODE -ne 0) { Write-InstallError "无法限制 Agent 数据目录权限" } $Temporary = "$AgentFile.$PID.download.exe" -$ReleaseApi = "https://api.github.com/repos/imengying/NodeFlare/releases/latest" +$ReleaseApi = "https://api.github.com/repos/elysia62/NodeFlare/releases/latest" $Artifact = "agent-windows-x64.exe" try { Write-Step "正在获取 GitHub 最新正式版本($Artifact)" @@ -182,7 +182,7 @@ try { Write-InstallError "Release 缺少 $Artifact 的 SHA-256 摘要" } $ExpectedChecksum = $DigestMatch.Groups[1].Value - $DownloadUrl = "https://github.com/imengying/NodeFlare/releases/download/$($Release.tag_name)/$Artifact" + $DownloadUrl = "https://github.com/elysia62/NodeFlare/releases/download/$($Release.tag_name)/$Artifact" if ($Mirror) { $DownloadUrl = "$Mirror/$DownloadUrl" Write-Step "正在通过下载加速前缀拉取 Agent $($Release.tag_name)" diff --git a/agent/src/main.rs b/agent/src/main.rs index 99d8bca..40b7f21 100644 --- a/agent/src/main.rs +++ b/agent/src/main.rs @@ -37,7 +37,7 @@ const VERSION: &str = match option_env!("NODEFLARE_VERSION") { Some(version) if !version.is_empty() => version, _ => env!("CARGO_PKG_VERSION"), }; -const LATEST_RELEASE_API: &str = "https://api.github.com/repos/imengying/NodeFlare/releases/latest"; +const LATEST_RELEASE_API: &str = "https://api.github.com/repos/elysia62/NodeFlare/releases/latest"; const PROBE_ATTEMPTS: usize = 4; const PROBE_TIMEOUT: Duration = Duration::from_secs(1); const MAX_AGENT_BINARY_BYTES: u64 = 64 * 1024 * 1024; diff --git a/backend/Cargo.toml b/backend/Cargo.toml index e9dd5d7..62b39f2 100644 --- a/backend/Cargo.toml +++ b/backend/Cargo.toml @@ -4,7 +4,7 @@ version = "1.0.0" edition = "2024" license = "MIT" description = "Server monitoring system with WebSocket support" -repository = "https://github.com/imengying/NodeFlare" +repository = "https://github.com/elysia62/NodeFlare" [[bin]] name = "nodeflare" diff --git a/frontend/package.json b/frontend/package.json index c0a0e8d..22afb61 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -2,7 +2,7 @@ "name": "nodeflare-ui", "version": "1.0.0", "private": true, - "repository": "https://github.com/imengying/NodeFlare", + "repository": "https://github.com/elysia62/NodeFlare", "type": "module", "scripts": { "dev": "vite", diff --git a/frontend/src/components/AdminPanel.tsx b/frontend/src/components/AdminPanel.tsx index 6b80165..6269dcc 100644 --- a/frontend/src/components/AdminPanel.tsx +++ b/frontend/src/components/AdminPanel.tsx @@ -55,7 +55,7 @@ import { Flag } from "./Flag"; import pkg from "../../package.json"; const VERSION = import.meta.env.VITE_NODEFLARE_VERSION || pkg.version; -const AGENT_SCRIPT_BASE = "https://raw.githubusercontent.com/imengying/NodeFlare/main/agent"; +const AGENT_SCRIPT_BASE = "https://raw.githubusercontent.com/elysia62/NodeFlare/main/agent"; type AgentPlatform = "linux" | "windows" | "macos" | "freebsd"; type ThemeSourceMode = "repository" | "upload"; @@ -1295,7 +1295,7 @@ export function AdminPanel({
NodeFlare基于 Rust、Axum、SQLite / PostgreSQL 与 WebSocket 的服务器监控
版本v{VERSION}
-
项目地址github.com/imengying/NodeFlare
+
项目地址github.com/elysia62/NodeFlare
开源协议MIT License
diff --git a/install.ps1 b/install.ps1 index 3e52438..625d1dc 100644 --- a/install.ps1 +++ b/install.ps1 @@ -10,7 +10,7 @@ param( $ErrorActionPreference = "Stop" [Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12 -$Repository = "imengying/NodeFlare" +$Repository = "elysia62/NodeFlare" $TaskName = "nodeflare" $InstallDir = Join-Path $env:ProgramFiles "NodeFlare" $ServerFile = Join-Path $InstallDir "nodeflare.exe" diff --git a/install.sh b/install.sh index e36d695..4751135 100755 --- a/install.sh +++ b/install.sh @@ -1,7 +1,7 @@ #!/bin/sh set -eu -repository=imengying/NodeFlare +repository=elysia62/NodeFlare init_system="" systemd_file=/etc/systemd/system/nodeflare.service openrc_file=/etc/init.d/nodeflare diff --git a/package.json b/package.json index 92b8485..15bfd3f 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "nodeflare", "version": "1.0.0", "private": true, - "repository": "https://github.com/imengying/NodeFlare", + "repository": "https://github.com/elysia62/NodeFlare", "packageManager": "bun@1.4.0", "workspaces": [ "frontend"