diff --git a/README.md b/README.md index 5d233764f..a06a4df6b 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,14 @@ # cloudflare-docker-proxy -![deploy](https://github.com/ciiiii/cloudflare-docker-proxy/actions/workflows/deploy.yaml/badge.svg) - -[![Deploy to Cloudflare Workers](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/ciiiii/cloudflare-docker-proxy) - > If you're looking for proxy for helm, maybe you can try [cloudflare-helm-proxy](https://github.com/ciiiii/cloudflare-helm-proxy). ## Deploy +[![Deploy to Cloudflare Workers](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/hoseops/cloudflare-docker-proxy) 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](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/ciiiii/cloudflare-docker-proxy) - ## Routes configuration tutorial 1. use cloudflare worker host: only support proxy one registry diff --git a/src/index.js b/src/index.js index 97b088521..c4a066425 100644 --- a/src/index.js +++ b/src/index.js @@ -6,18 +6,14 @@ addEventListener("fetch", (event) => { const dockerHub = "https://registry-1.docker.io"; const routes = { - // production - "docker.libcuda.so": dockerHub, - "quay.libcuda.so": "https://quay.io", - "gcr.libcuda.so": "https://gcr.io", - "k8s-gcr.libcuda.so": "https://k8s.gcr.io", - "k8s.libcuda.so": "https://registry.k8s.io", - "ghcr.libcuda.so": "https://ghcr.io", - "cloudsmith.libcuda.so": "https://docker.cloudsmith.io", - "ecr.libcuda.so": "https://public.ecr.aws", - - // staging - "docker-staging.libcuda.so": dockerHub, + "docker.hose.cloud": dockerHub, + "quay.hose.cloud": "https://quay.io", + "gcr.hose.cloud": "https://gcr.io", + "k8s-gcr.hose.cloud": "https://k8s.gcr.io", + "k8s.hose.cloud": "https://registry.k8s.io", + "ghcr.hose.cloud": "https://ghcr.io", + "cloudsmith.hose.cloud": "https://docker.cloudsmith.io", + "ecr.hose.cloud": "https://public.ecr.aws", }; function routeByHosts(host) {