From 1c4deb12236d25a541963e48a2f2b475c30dfe2d Mon Sep 17 00:00:00 2001 From: LPF Date: Tue, 9 Jul 2024 16:21:14 +0800 Subject: [PATCH 1/2] fix --- README.md | 10 +++++----- src/index.js | 18 +++++++++--------- wrangler.toml | 16 ++++++++-------- 3 files changed, 22 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 5d233764f..c4b9d7c6d 100644 --- a/README.md +++ b/README.md @@ -30,11 +30,11 @@ - add more records and modify the config as you need ```javascript 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", + "docker.nvue.dev": "https://registry-1.docker.io", + "quay.nvue.dev": "https://quay.io", + "gcr.nvue.dev": "https://k8s.gcr.io", + "k8s-gcr.nvue.dev": "https://k8s.gcr.io", + "ghcr.nvue.dev": "https://ghcr.io", }; ``` diff --git a/src/index.js b/src/index.js index 97b088521..cc34d8af0 100644 --- a/src/index.js +++ b/src/index.js @@ -7,17 +7,17 @@ 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", + "docker.nvue.dev": dockerHub, + "quay.nvue.dev": "https://quay.io", + "gcr.nvue.dev": "https://gcr.io", + "k8s-gcr.nvue.dev": "https://k8s.gcr.io", + "k8s.nvue.dev": "https://registry.k8s.io", + "ghcr.nvue.dev": "https://ghcr.io", + "cloudsmith.nvue.dev": "https://docker.cloudsmith.io", + "ecr.nvue.dev": "https://public.ecr.aws", // staging - "docker-staging.libcuda.so": dockerHub, + "docker-staging.nvue.dev": dockerHub, }; function routeByHosts(host) { diff --git a/wrangler.toml b/wrangler.toml index c3077a0ff..3790607a0 100644 --- a/wrangler.toml +++ b/wrangler.toml @@ -13,13 +13,13 @@ TARGET_UPSTREAM = "https://registry-1.docker.io" [env.production] name = "cloudflare-docker-proxy" # routes = [ -# { pattern = "docker.libcuda.so", custom_domain = true }, -# { pattern = "quay.libcuda.so", custom_domain = true }, -# { pattern = "gcr.libcuda.so", custom_domain = true }, -# { pattern = "k8s-gcr.libcuda.so", custom_domain = true }, -# { pattern = "k8s.libcuda.so", custom_domain = true }, -# { pattern = "ghcr.libcuda.so", custom_domain = true }, -# { pattern = "cloudsmith.libcuda.so", custom_domain = true }, +# { pattern = "docker.nvue.dev", custom_domain = true }, +# { pattern = "quay.nvue.dev", custom_domain = true }, +# { pattern = "gcr.nvue.dev", custom_domain = true }, +# { pattern = "k8s-gcr.nvue.dev", custom_domain = true }, +# { pattern = "k8s.nvue.dev", custom_domain = true }, +# { pattern = "ghcr.nvue.dev", custom_domain = true }, +# { pattern = "cloudsmith.nvue.dev", custom_domain = true }, # ] [env.production.vars] @@ -28,7 +28,7 @@ TARGET_UPSTREAM = "" [env.staging] name = "cloudflare-docker-proxy-staging" -# route = { pattern = "docker-staging.libcuda.so", custom_domain = true } +# route = { pattern = "docker-staging.nvue.dev", custom_domain = true } [env.staging.vars] MODE = "staging" From 0a5d7519113e2c11b029662d82717c0e896a56ff Mon Sep 17 00:00:00 2001 From: LPF Date: Tue, 9 Jul 2024 16:23:36 +0800 Subject: [PATCH 2/2] fix --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c4b9d7c6d..8b7075ba4 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ # cloudflare-docker-proxy -![deploy](https://github.com/ciiiii/cloudflare-docker-proxy/actions/workflows/deploy.yaml/badge.svg) +![deploy](https://github.com/YspCoder/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) +[![Deploy to Cloudflare Workers](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/YspCoder/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). +> If you're looking for proxy for helm, maybe you can try [cloudflare-helm-proxy](https://github.com/YspCoder/cloudflare-helm-proxy). ## Deploy @@ -12,7 +12,7 @@ 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) +[![Deploy to Cloudflare Workers](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/YspCoder/cloudflare-docker-proxy) ## Routes configuration tutorial