Sign inSign up

oozzbb/aggregator

By oozzbb

Updated 7 months ago

纯 Docker 版自动获取机场订阅

Image
3

6.9K

oozzbb/aggregator repository overview

准备工作

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

环境变量说明
  1. PROXY 代理地址,需要根据自己情况修改,比如宿主机部署的 clash 代理,那么这里就填 clash 的代理地址,比如:http://10.0.0.10:7890
  2. GIST_PAT github token,准备工作中申请的 access token
  3. GIST_LINK github gist link,准备工作中创建的 gistid,如创建的地址是 https://gist.github.com/yourname/a8SPMiIBVK3wL1LIg5hPI8KGGBxgC7k5,那么 link 就是 yourname/a8SPMiIBVK3wL1LIg5hPI8KGGBxgC7k5
变量名描述默认值
GIST_PATgithub gist 读写权限 token
GIST_LINKgithub username/gist id
PROXY代理地址,海外服务器可不设置此值
CUSTOMIZE_LINK自己维护的机场网址,每行包含域名、优惠券和邀请码,域名必填,后两项可选
ENABLE_SPECIAL_PROTOCOLS包括特殊协议,例如 vless hysteria2 和 hysteriatrue
TZ时区Asia/Shanghai
CRON_RULE定时规则0 */2 * * *

Tag summary

Content type

Image

Digest

sha256:a4c29f621

Size

162.7 MB

Last updated

7 months ago

docker pull oozzbb/aggregator