We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d03acb commit 2dfa020Copy full SHA for 2dfa020
nginx.conf
@@ -296,7 +296,10 @@ echo "Docker configured with HTTPS_PROXY=$scheme://$http_host/"
296
# the proxy_* directives, these will disappear
297
set $original_uri $uri;
298
set $orig_loc $upstream_http_location;
299
-
+ # Handle relative re-direct in Location header (as opposed to absolute)
300
+ if ($upstream_http_location !~ "^http") {
301
+ set $orig_loc "${scheme}://${host}${upstream_http_location}";
302
+ }
303
# during this process, nginx will preserve the headers intended for the original destination.
304
# in most cases thats okay, but for some (eg: google storage), passing an Authorization
305
# header can cause problems. Also, that would leak the credentials for the registry
0 commit comments