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 (#104)
This commit is contained in:
@@ -105,7 +105,7 @@ async function handleRequest(request) {
|
|||||||
const newReq = new Request(newUrl, {
|
const newReq = new Request(newUrl, {
|
||||||
method: request.method,
|
method: request.method,
|
||||||
headers: request.headers,
|
headers: request.headers,
|
||||||
redirect: "follow",
|
redirect: "manual",
|
||||||
});
|
});
|
||||||
const resp = await fetch(newReq);
|
const resp = await fetch(newReq);
|
||||||
if (resp.status == 401) {
|
if (resp.status == 401) {
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ CUSTOM_DOMAIN = "libcuda.so"
|
|||||||
[env.dev.vars]
|
[env.dev.vars]
|
||||||
MODE = "debug"
|
MODE = "debug"
|
||||||
TARGET_UPSTREAM = "https://registry-1.docker.io"
|
TARGET_UPSTREAM = "https://registry-1.docker.io"
|
||||||
|
CUSTOM_DOMAIN = "exmaple.com"
|
||||||
|
|
||||||
[env.production]
|
[env.production]
|
||||||
name = "cloudflare-docker-proxy"
|
name = "cloudflare-docker-proxy"
|
||||||
|
|||||||
Reference in New Issue
Block a user