mirror of
https://github.com/ciiiii/cloudflare-docker-proxy.git
synced 2025-12-06 14:42:51 +08:00
Change redirect mode from follow to manual
This commit is contained in:
@@ -105,7 +105,7 @@ async function handleRequest(request) {
|
||||
const newReq = new Request(newUrl, {
|
||||
method: request.method,
|
||||
headers: request.headers,
|
||||
redirect: "follow",
|
||||
redirect: "manual",
|
||||
});
|
||||
const resp = await fetch(newReq);
|
||||
if (resp.status == 401) {
|
||||
|
||||
@@ -12,6 +12,7 @@ CUSTOM_DOMAIN = "libcuda.so"
|
||||
[env.dev.vars]
|
||||
MODE = "debug"
|
||||
TARGET_UPSTREAM = "https://registry-1.docker.io"
|
||||
CUSTOM_DOMAIN = "exmaple.com"
|
||||
|
||||
[env.production]
|
||||
name = "cloudflare-docker-proxy"
|
||||
|
||||
Reference in New Issue
Block a user