mirror of
https://github.com/ciiiii/cloudflare-docker-proxy.git
synced 2026-03-21 09:49:46 +08:00
chore: Update deployment configuration for custom domain (#66)
Some checks failed
Deploy to Cloudflare Workers / Build & Deploy (push) Has been cancelled
Some checks failed
Deploy to Cloudflare Workers / Build & Deploy (push) Has been cancelled
This commit is contained in:
18
src/index.js
18
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." + CUSTOM_DOMAIN]: dockerHub,
|
||||
["quay." + CUSTOM_DOMAIN]: "https://quay.io",
|
||||
["gcr." + CUSTOM_DOMAIN]: "https://gcr.io",
|
||||
["k8s-gcr." + CUSTOM_DOMAIN]: "https://k8s.gcr.io",
|
||||
["k8s." + CUSTOM_DOMAIN]: "https://registry.k8s.io",
|
||||
["ghcr." + CUSTOM_DOMAIN]: "https://ghcr.io",
|
||||
["cloudsmith." + CUSTOM_DOMAIN]: "https://docker.cloudsmith.io",
|
||||
["ecr." + CUSTOM_DOMAIN]: "https://public.ecr.aws",
|
||||
|
||||
// staging
|
||||
"docker-staging.libcuda.so": dockerHub,
|
||||
["docker-staging." + CUSTOM_DOMAIN]: dockerHub,
|
||||
};
|
||||
|
||||
function routeByHosts(host) {
|
||||
|
||||
Reference in New Issue
Block a user