Yisheng Cai 9ae8f6464f Fix registry no need auth (#3)
* Migrate to wrangler2

* Support registry no need auth
2023-03-05 23:26:15 +08:00
2023-03-05 23:26:15 +08:00
2022-11-23 22:57:52 +08:00
2023-03-05 23:26:15 +08:00

cloudflare-docker-proxy

deploy

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

Deploy

Deploy to Cloudflare Workers

  1. fork this project
  2. modify the link of the above button to your fork url
  3. click the button, you will be redirected to the deploy page

Config tutorial

  1. use cloudflare worker host: only support proxy one registry
    const routes = {
      "${workername}.${username}.workers.dev/": "https://registry-1.docker.io",
    };
    
  2. use custom domain: support proxy multiple registries route by host
    • host your domain DNS on cloudflare
    • add A record of xxx.example.com to 192.0.2.1
    • deploy this project to cloudflare workers
    • add xxx.example.com/* to HTTP routes of workers
    • add more records and modify the config as you need
    const routes = {
      "docker.libcuda.so": "https://registry-1.docker.io",
      "quay.libcuda.so": "https://quay.io",
      "gcr.libcuda.so": "https://k8s.gcr.io",
      "k8s-gcr.libcuda.so": "https://k8s.gcr.io",
      "ghcr.libcuda.so": "https://ghcr.io",
    };
    
Description
A docker registry proxy run on cloudflare worker.
Readme 163 KiB
Languages
JavaScript 100%