method-gist
Gist 保存方法
部署
- 创建一个 Gist
- 将 Gist ID 配置到
config.yaml - 将 Gist Token 配置到
config.yaml
Worker 反代 GitHub API(可选)
- 将 worker 部署到 Cloudflare Workers
- 在“变量和机密”设置:
GITHUB_USER为你的 GitHub 用户名GITHUB_ID为你的 Gist IDAUTH_TOKEN为访问密钥
- 将
github-api-mirror配置为你的 Worker 地址
示例:
github-api-mirror: "https://your-worker-url/github"
获取订阅
如果配置了 Worker,将
key修改为对应的即可。 订阅格式:https://your-worker-url/gist?key=all.yaml&token=AUTH_TOKEN
- yaml 格式
https://gist.githubusercontent.com/YOUR_GITHUB_USERNAME/YOUR_GIST_ID/raw/all.yaml
- base64 编码
https://gist.githubusercontent.com/YOUR_GITHUB_USERNAME/YOUR_GIST_ID/raw/base64.txt
- 带规则的 mihomo.yaml
https://gist.githubusercontent.com/YOUR_GITHUB_USERNAME/YOUR_GIST_ID/raw/mihomo.yaml