mirror of
https://github.com/ciiiii/cloudflare-docker-proxy.git
synced 2026-04-07 12:29:51 +08:00
Compare commits
2 Commits
yscai/remo
...
yscai/regi
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b1b48aa7d9 | ||
|
|
861a6a8bb1 |
@@ -68,6 +68,7 @@ async function handleRequest(request) {
|
||||
`Bearer realm="https://${url.hostname}/v2/auth",service="cloudflare-docker-proxy"`
|
||||
);
|
||||
}
|
||||
headers.set("Docker-Distribution-API-Version", "registry/2.0");
|
||||
return new Response(JSON.stringify({ message: "UNAUTHORIZED" }), {
|
||||
status: 401,
|
||||
headers: headers,
|
||||
|
||||
@@ -12,15 +12,15 @@ 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 },
|
||||
# ]
|
||||
routes = [
|
||||
{ pattern = "docker.libcuda.so", custom_domain = true },
|
||||
{ pattern = "quey.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 },
|
||||
]
|
||||
|
||||
[env.production.vars]
|
||||
MODE = "production"
|
||||
@@ -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.libcuda.so", custom_domain = true }
|
||||
|
||||
[env.staging.vars]
|
||||
MODE = "staging"
|
||||
|
||||
Reference in New Issue
Block a user