Watch
1
0
Fork
You've already forked cloudflare-docker-proxy
0
mirror of https://github.com/xlionjuan/cloudflare-docker-proxy.git synced 2026-11-16 19:40:18 +00:00
A docker registry proxy run on cloudflare worker.
  • JavaScript 100%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
xlion-bot-renovate[bot] 157b7af8d1
chore(deps): update cloudflare/wrangler-action action to v4.1.0 (#282)
Co-authored-by: xlion-bot-renovate[bot] <218815870+xlion-bot-renovate[bot]@users.noreply.github.com>
2026-09-22 15:05:13 +00:00
.github/workflows chore(deps): update cloudflare/wrangler-action action to v4.1.0 (#282) 2026-09-22 15:05:13 +00:00
src Merge pull request #1 from ciiiii/master 2025-07-28 20:08:07 +08:00
.gitignore Support registry login (#14) 2024-06-13 04:05:23 +08:00
package-lock.json chore(deps): update dependency wrangler to v4.135.0 (#281) 2026-09-21 15:04:18 +00:00
package.json chore(deps): update dependency wrangler to v4.135.0 (#281) 2026-09-21 15:04:18 +00:00
README.md Update README.md 2024-06-24 00:39:28 +08:00
renovate.json chore(config): migrate config renovate.json 2025-07-28 12:49:29 +00:00
webpack.config.js init webpack project for cloudflare worker 2022-03-22 02:35:17 +08:00
wrangler.toml Change redirect mode from follow to manual (#104) 2025-02-17 02:30:59 +08:00
yarn.lock chore(deps): update dependency wrangler to v4.135.0 (#281) 2026-09-21 15:04:18 +00:00

cloudflare-docker-proxy

deploy

Deploy to Cloudflare Workers

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

Deploy

  1. click the "Deploy With Workers" button
  2. follow the instructions to fork and deploy
  3. update routes as you requirement

Deploy to Cloudflare Workers

Routes configuration 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",
    };