feat: 提交
这个提交包含在:
@@ -64,15 +64,23 @@ bash <(curl -fsSL https://git.suhang.me/suhang/scripts/raw/branch/release/realm/
|
||||
|
||||
## GitHub 代理
|
||||
|
||||
安装时会提示输入 GitHub 代理域名(默认 `ghproxy.com`,输入 `none` 表示直连)。脚本会把代理拼接到 GitHub API 与 release 下载地址前,例如:
|
||||
安装时会提示输入 GitHub 代理域名(**默认直连,不使用代理**;如需走代理推荐填 `ghfast.top`,输入 `none` 也表示直连)。脚本会把代理拼接到 GitHub API 与 release 下载地址前,例如:
|
||||
|
||||
```
|
||||
https://ghproxy.com/https://github.com/zhboner/realm/releases/download/...
|
||||
https://ghproxy.com/https://api.github.com/repos/zhboner/realm/releases/latest
|
||||
https://ghfast.top/https://github.com/zhboner/realm/releases/download/...
|
||||
https://ghfast.top/https://api.github.com/repos/zhboner/realm/releases/latest
|
||||
```
|
||||
|
||||
选择会保存到 `<INSTALL_DIR>/.proxy`,更新内核(菜单 `10`)时会沿用。如需更换代理,可直接编辑该文件后再执行更新。
|
||||
|
||||
## 调试
|
||||
|
||||
启动脚本时加 `--debug`(或 `-d`)可打印更多日志,包括架构识别、代理拼接结果、curl 详细输出、写入配置等:
|
||||
|
||||
```bash
|
||||
bash <(curl -fsSL https://git.suhang.me/suhang/scripts/raw/branch/release/realm/realm.sh) --debug
|
||||
```
|
||||
|
||||
## 配置示例
|
||||
|
||||
脚本生成的 `config.toml` 大致如下,每条规则对应一个 `[[endpoints]]` 块:
|
||||
|
||||
在新工单中引用
屏蔽一个用户