If you're looking for proxy for helm, maybe you can try cloudflare-helm-proxy.
- fork这个项目
- 将上述按钮的链接修改到您的fork网址
- 单击该按钮,您将被重定向到“部署”页面(直接点击按钮也行)
-
使用 Cloudflare Worker Host:仅支持代理一个注册表
- 方法:
-
- 替换
${workername}.${username}.workers.dev/为Cloudflare生成的路由,如cloudflare-docker-proxy.xxxx.workers.dev/
- 替换
-
const routes = { "${workername}.${username}.workers.dev/": "https://registry-1.docker.io", };
- 方法:
-
使用自定义域或者路由:支持按主机代理多个注册管理机构路由(部分机构含有多种)
-
方法1:
-
- 在 Cloudflare 上托管您的域
DNS
- 在 Cloudflare 上托管您的域
-
- 添加
xxx.example.com的A记录到192.0.2.1(IP没要求,随便填写就行,最后都会被worker截断,不会访问到填入的ip下)
- 添加
-
- 将此项目部署到 Cloudflare Workers
-
- 添加
xxx.example.com/*到路由里
- 添加
-
- 添加更多记录并根据需要修改配置,(左边为你的域名,右边为目标网站,左边每一个新域名,都需要单独做一次步骤b与步骤d)
-
-
方法2:
-
- 将此项目部署到 Cloudflare Workers
-
- 添加
xxx.example.com到自定义域
- 添加
-
- 添加更多记录并根据需要修改配置,(左边为访问域名,右边为目标网站,左边每一个新域名,都需要单独做一次步骤b)
-
-
需要修改的源代码
const routes = { "docker.example.com": "https://registry-1.docker.io", // 允许添加多个站点 };
-
- 部分
docker官方发布的容器,如hello-world会pull失败,出现提示:Error response from daemon: pull access denied for xxx.example.com/hello-world, repository does not exist or may require 'docker login': denied: requested access to the resource is denied- 出现此问题,请配置登录
docker的账号,辅助通过认证