docs(git-proxy): CI 已迁 Gitea 不再需要 GitHub 代理,ensure-fastgithub.sh 指仓库路径

This commit is contained in:
Zhengshou Lai
2026-08-22 13:09:23 +08:00
parent fd37ea42fa
commit 1b109fa6c3
@@ -16,8 +16,9 @@ mytoolkit git proxy run fastgithub # 旧前台模式(设 git + Ctrl-C
```
- `start` / `stop` / `restart`:端口 + PID`lsof`),状态文件 `~/.mytoolkit/run/proxy-current.json``start` 默认写全局 git http(s).proxy`stop` 按状态文件自动恢复旧值(`--set-git/--no-set-git` 可显式切换)
- CI:主机 `start --no-set-git fastgithub`daemon only,勿动全局 git config);job 用 `HEYUE_CI_GIT_PROXY=1` / `XIAOHE_CI_GIT_PROXY=1`(勿依赖全局 git proxy
- Parallels guest 需 `brew install socat`;可选 `XIAOHE_CI_PARALLELS_HOST_IP`
- **与手动 FastGitHub 不抢进程**`:38457` 已在听则 **收养**`adopted: true`)。`stop` 只拆 socat / 恢复 git**不杀**别人(或 `ensure-fastgithub.sh`)拉起的 FastGitHub。只有 mytoolkit 自己 spawn 的进程才会被 `stop` 杀掉。
- 无 mytoolkit 的环境(干净机器 / docker 容器)**不要**依赖本 CLI。用仓库 `scripts/common/ensure-fastgithub.sh` 探测并原生 `fastgithub start`。**CI 已迁 Gitea**tailnet 内网),checkout / 构建**不再需要** GitHub 代理。
- Parallels guest 需 `brew install socat` 才有转发。Shared/Host-Only 走 `10.211.55.2` / `10.37.129.2`**桥接** guest 走 Mac `en0` LAN IPARM64 Windows 无法加载 WinDivert,不能跑本机 FastGitHub)。
## 新机器安装 FastGitHub
@@ -38,6 +39,4 @@ mytoolkit git proxy run fastgithub # 旧前台模式(设 git + Ctrl-C
```bash
mytoolkit env set connections.proxy.fastgithub http://127.0.0.1:38457
```
5. 启动:`mytoolkit git proxy start fastgithub` → `mytoolkit git proxy status`
Windows/Linux 也可用官方 `fastgithub start`(系统服务);本 CLI 的 `start` 面向 **Mac 宿主 + Parallels socat** 场景。
5. 启动:`bash <xiaohe-agent>/scripts/common/ensure-fastgithub.sh`(无 mytoolkit 的环境)或 `mytoolkit git proxy start fastgithub` → status。两者可叠加:先手动/ensure 起 FastGitHub,再 mytoolkit 只加 socat`mytoolkit git proxy stop` 不会把 FastGitHub 杀掉。