Skip to content

Commit

Permalink
Update hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
ISNing committed Jul 14, 2024
1 parent aa61ad5 commit 04e675d
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.ccsn.dev": dockerHub,
"quay.ccsn.dev": "https://quay.io",
"gcr.ccsn.dev": "https://gcr.io",
"k8s-gcr.ccsn.dev": "https://k8s.gcr.io",
"k8s-registry.ccsn.dev": "https://registry.k8s.io",
"ghcr.ccsn.dev": "https://ghcr.io",
"cloudsmith.ccsn.dev": "https://docker.cloudsmith.io",
"ecr.ccsn.dev": "https://public.ecr.aws",
};

function routeByHosts(host) {
Expand Down

0 comments on commit 04e675d

Please sign in to comment.