Giter Club home page Giter Club logo

cf-dp's Introduction

cf-dp

deploy

If you're looking for proxy for helm, maybe you can try cloudflare-helm-proxy.

部署

Deploy to Cloudflare Workers

  1. fork这个项目
  2. 将上述按钮的链接修改到您的fork网址
  3. 单击该按钮,您将被重定向到“部署”页面(直接点击按钮也行)

配置教程

  1. 使用 Cloudflare Worker Host:仅支持代理一个注册表

    • 方法:
        1. 替换${workername}.${username}.workers.dev/为Cloudflare生成的路由,如cloudflare-docker-proxy.xxxx.workers.dev/
    const routes = {
      "${workername}.${username}.workers.dev/": "https://registry-1.docker.io",
    };
  2. 使用自定义域或者路由:支持按主机代理多个注册管理机构路由(部分机构含有多种)

    • 方法1:

        1. 在 Cloudflare 上托管您的域DNS
        1. 添加xxx.example.comA记录到192.0.2.1(IP没要求,随便填写就行,最后都会被worker截断,不会访问到填入的ip下)
        1. 将此项目部署到 Cloudflare Workers
        1. 添加 xxx.example.com/*路由
        1. 添加更多记录并根据需要修改配置,(左边为你的域名,右边为目标网站,左边每一个新域名,都需要单独做一次步骤b与步骤d)
    • 方法2:

        1. 将此项目部署到 Cloudflare Workers
        1. 添加xxx.example.com自定义域
        1. 添加更多记录并根据需要修改配置,(左边为访问域名,右边为目标网站,左边每一个新域名,都需要单独做一次步骤b)
    • 需要修改的源代码

    const routes = {
         "docker.example.com": "https://registry-1.docker.io",
          // 允许添加多个站点  
       };

目前发现存在的问题

  1. 部分docker官方发布的容器,如hello-worldpull失败,出现提示:
    • 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的账号,辅助通过认证

cf-dp's People

Contributors

ciiiii avatar aqr-k avatar

Stargazers

 avatar qiuqila avatar

Forkers

tony3080 lwj945

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.