准备工作
1 新建一个 Github Gist,指定名称和后缀: clash.yaml。
2 新增一个 Personal access token,创建时只需要修改 Permissions 中的 Gists 为 Read and write 即可,其他选项保持默认。
docker run -d --name aggregator \
--restart always \
--add-host=host.docker.internal:host-gateway \
-e GIST_PAT=<your github token> \
-e GIST_LINK=<github username/gist_id> \
-e PROXY=http://host.docker.internal:7890
\-e TZ=Asia/Shanghai \
oozzbb/aggregator:latest
http://10.0.0.10:7890。access token。gist 的 id,如创建的地址是 https://gist.github.com/yourname/a8SPMiIBVK3wL1LIg5hPI8KGGBxgC7k5,那么 link 就是 yourname/a8SPMiIBVK3wL1LIg5hPI8KGGBxgC7k5。| 变量名 | 描述 | 默认值 |
|---|---|---|
| GIST_PAT | github gist 读写权限 token | |
| GIST_LINK | github username/gist id | |
| PROXY | 代理地址,海外服务器可不设置此值 | |
| CUSTOMIZE_LINK | 自己维护的机场网址,每行包含域名、优惠券和邀请码,域名必填,后两项可选 | |
| ENABLE_SPECIAL_PROTOCOLS | 包括特殊协议,例如 vless hysteria2 和 hysteria | true |
| TZ | 时区 | Asia/Shanghai |
| CRON_RULE | 定时规则 | 0 */2 * * * |
Content type
Image
Digest
sha256:a4c29f621…
Size
162.7 MB
Last updated
7 months ago
docker pull oozzbb/aggregator