diff --git a/src/index.js b/src/index.js index 785a41a..7c4ebd8 100644 --- a/src/index.js +++ b/src/index.js @@ -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) { diff --git a/wrangler.toml b/wrangler.toml index b245b95..bbf4845 100644 --- a/wrangler.toml +++ b/wrangler.toml @@ -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"