mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-03 09:50:21 +08:00
Update proxy installer branch references
This commit is contained in:
2
.github/workflows/build-proxy.yml
vendored
2
.github/workflows/build-proxy.yml
vendored
@@ -185,7 +185,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
with:
|
with:
|
||||||
ref: aether-rust-pioneer
|
ref: main
|
||||||
|
|
||||||
- name: Update README download links
|
- name: Update README download links
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -15,8 +15,10 @@ use super::{
|
|||||||
const INSTALL_SESSION_TTL_SECS: u64 = 15 * 60;
|
const INSTALL_SESSION_TTL_SECS: u64 = 15 * 60;
|
||||||
const INSTALL_SESSION_KEY_PREFIX: &str = "install:session:";
|
const INSTALL_SESSION_KEY_PREFIX: &str = "install:session:";
|
||||||
const PROXY_INSTALL_SESSION_KEY_PREFIX: &str = "proxy-install:session:";
|
const PROXY_INSTALL_SESSION_KEY_PREFIX: &str = "proxy-install:session:";
|
||||||
const PROXY_INSTALL_UNIX_SCRIPT_URL: &str = "https://raw.githubusercontent.com/fawney19/Aether/aether-rust-pioneer/apps/aether-proxy/install.sh";
|
const PROXY_INSTALL_UNIX_SCRIPT_URL: &str =
|
||||||
const PROXY_INSTALL_POWERSHELL_SCRIPT_URL: &str = "https://raw.githubusercontent.com/fawney19/Aether/aether-rust-pioneer/apps/aether-proxy/install.ps1";
|
"https://raw.githubusercontent.com/fawney19/Aether/main/apps/aether-proxy/install.sh";
|
||||||
|
const PROXY_INSTALL_POWERSHELL_SCRIPT_URL: &str =
|
||||||
|
"https://raw.githubusercontent.com/fawney19/Aether/main/apps/aether-proxy/install.ps1";
|
||||||
|
|
||||||
#[derive(Debug, Clone, Copy, Deserialize, Serialize, PartialEq, Eq)]
|
#[derive(Debug, Clone, Copy, Deserialize, Serialize, PartialEq, Eq)]
|
||||||
#[serde(rename_all = "snake_case")]
|
#[serde(rename_all = "snake_case")]
|
||||||
@@ -912,7 +914,10 @@ mod tests {
|
|||||||
assert!(script.contains("export AETHER_PROXY_AETHER_URL='https://aether.example'"));
|
assert!(script.contains("export AETHER_PROXY_AETHER_URL='https://aether.example'"));
|
||||||
assert!(script.contains("export AETHER_PROXY_MANAGEMENT_TOKEN='ae-test-token'"));
|
assert!(script.contains("export AETHER_PROXY_MANAGEMENT_TOKEN='ae-test-token'"));
|
||||||
assert!(script.contains("export AETHER_PROXY_NODE_NAME='jp-proxy-01'"));
|
assert!(script.contains("export AETHER_PROXY_NODE_NAME='jp-proxy-01'"));
|
||||||
assert!(script.contains("apps/aether-proxy/install.sh"));
|
assert!(script.contains(
|
||||||
|
"https://raw.githubusercontent.com/fawney19/Aether/main/apps/aether-proxy/install.sh"
|
||||||
|
));
|
||||||
|
assert!(!script.contains("aether-rust-pioneer"));
|
||||||
assert!(!script.contains("[[servers]]"));
|
assert!(!script.contains("[[servers]]"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -923,7 +928,10 @@ mod tests {
|
|||||||
assert!(script.contains("$env:AETHER_PROXY_AETHER_URL = 'https://aether.example'"));
|
assert!(script.contains("$env:AETHER_PROXY_AETHER_URL = 'https://aether.example'"));
|
||||||
assert!(script.contains("$env:AETHER_PROXY_MANAGEMENT_TOKEN = 'ae-test-token'"));
|
assert!(script.contains("$env:AETHER_PROXY_MANAGEMENT_TOKEN = 'ae-test-token'"));
|
||||||
assert!(script.contains("$env:AETHER_PROXY_NODE_NAME = 'jp-proxy-01'"));
|
assert!(script.contains("$env:AETHER_PROXY_NODE_NAME = 'jp-proxy-01'"));
|
||||||
assert!(script.contains("apps/aether-proxy/install.ps1"));
|
assert!(script.contains(
|
||||||
|
"https://raw.githubusercontent.com/fawney19/Aether/main/apps/aether-proxy/install.ps1"
|
||||||
|
));
|
||||||
|
assert!(!script.contains("aether-rust-pioneer"));
|
||||||
assert!(!script.contains("[[servers]]"));
|
assert!(!script.contains("[[servers]]"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -37,19 +37,19 @@ Tunnel 模式下代理节点**无需对外监听端口**,仅需出站连接到
|
|||||||
macOS / Linux:
|
macOS / Linux:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl -fsSL https://raw.githubusercontent.com/fawney19/Aether/aether-rust-pioneer/apps/aether-proxy/install.sh | sh
|
curl -fsSL https://raw.githubusercontent.com/fawney19/Aether/main/apps/aether-proxy/install.sh | sh
|
||||||
```
|
```
|
||||||
|
|
||||||
Windows PowerShell:
|
Windows PowerShell:
|
||||||
|
|
||||||
```powershell
|
```powershell
|
||||||
irm https://raw.githubusercontent.com/fawney19/Aether/aether-rust-pioneer/apps/aether-proxy/install.ps1 | iex
|
irm https://raw.githubusercontent.com/fawney19/Aether/main/apps/aether-proxy/install.ps1 | iex
|
||||||
```
|
```
|
||||||
|
|
||||||
也可以用环境变量非交互式执行,适合在控制台“添加代理节点”时生成命令:
|
也可以用环境变量非交互式执行,适合在控制台“添加代理节点”时生成命令:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl -fsSL https://raw.githubusercontent.com/fawney19/Aether/aether-rust-pioneer/apps/aether-proxy/install.sh | \
|
curl -fsSL https://raw.githubusercontent.com/fawney19/Aether/main/apps/aether-proxy/install.sh | \
|
||||||
AETHER_PROXY_AETHER_URL="https://aether.example.com" \
|
AETHER_PROXY_AETHER_URL="https://aether.example.com" \
|
||||||
AETHER_PROXY_MANAGEMENT_TOKEN="ae_xxx" \
|
AETHER_PROXY_MANAGEMENT_TOKEN="ae_xxx" \
|
||||||
AETHER_PROXY_NODE_NAME="jp-proxy-01" \
|
AETHER_PROXY_NODE_NAME="jp-proxy-01" \
|
||||||
@@ -60,7 +60,7 @@ curl -fsSL https://raw.githubusercontent.com/fawney19/Aether/aether-rust-pioneer
|
|||||||
$env:AETHER_PROXY_AETHER_URL = "https://aether.example.com"
|
$env:AETHER_PROXY_AETHER_URL = "https://aether.example.com"
|
||||||
$env:AETHER_PROXY_MANAGEMENT_TOKEN = "ae_xxx"
|
$env:AETHER_PROXY_MANAGEMENT_TOKEN = "ae_xxx"
|
||||||
$env:AETHER_PROXY_NODE_NAME = "jp-proxy-01"
|
$env:AETHER_PROXY_NODE_NAME = "jp-proxy-01"
|
||||||
irm https://raw.githubusercontent.com/fawney19/Aether/aether-rust-pioneer/apps/aether-proxy/install.ps1 | iex
|
irm https://raw.githubusercontent.com/fawney19/Aether/main/apps/aether-proxy/install.ps1 | iex
|
||||||
```
|
```
|
||||||
|
|
||||||
可选变量:`AETHER_PROXY_RELEASE_TAG` 固定安装某个 `proxy-v*` tag,`AETHER_PROXY_CONFIG` 指定配置文件路径,`AETHER_PROXY_INSTALL_DIR` 指定二进制安装目录。
|
可选变量:`AETHER_PROXY_RELEASE_TAG` 固定安装某个 `proxy-v*` tag,`AETHER_PROXY_CONFIG` 指定配置文件路径,`AETHER_PROXY_INSTALL_DIR` 指定二进制安装目录。
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
REPO="${AETHER_REPO:-fawney19/Aether}"
|
REPO="${AETHER_REPO:-fawney19/Aether}"
|
||||||
SOURCE_REF="${AETHER_SOURCE_REF:-aether-rust-pioneer}"
|
SOURCE_REF="${AETHER_SOURCE_REF:-main}"
|
||||||
VERSION="${AETHER_VERSION:-}"
|
VERSION="${AETHER_VERSION:-}"
|
||||||
CHANNEL="${AETHER_CHANNEL:-stable}"
|
CHANNEL="${AETHER_CHANNEL:-stable}"
|
||||||
CHANNEL_EXPLICIT="false"
|
CHANNEL_EXPLICIT="false"
|
||||||
@@ -60,7 +60,7 @@ Options:
|
|||||||
beta resolves the latest tag like v0.7.0-beta.1
|
beta resolves the latest tag like v0.7.0-beta.1
|
||||||
--version VERSION Exact release tag to install, for example v0.7.0-rc.1
|
--version VERSION Exact release tag to install, for example v0.7.0-rc.1
|
||||||
--repo OWNER/REPO GitHub repository to download from (default: fawney19/Aether)
|
--repo OWNER/REPO GitHub repository to download from (default: fawney19/Aether)
|
||||||
--source-ref REF Source branch/tag used for compose templates (default: aether-rust-pioneer)
|
--source-ref REF Source branch/tag used for compose templates (default: main)
|
||||||
--archive PATH Install from a local release tarball instead of downloading
|
--archive PATH Install from a local release tarball instead of downloading
|
||||||
--download-url URL Download the release archive from this URL instead of GitHub
|
--download-url URL Download the release archive from this URL instead of GitHub
|
||||||
--env-file PATH Use an existing aether-gateway.env file
|
--env-file PATH Use an existing aether-gateway.env file
|
||||||
|
|||||||
Reference in New Issue
Block a user