Merge pull request #13 from kbrwn/nginx-storage-proxy-header-fix
PROJQUAY-4 - Fix 400s raised when podman is attempting to pull images via proxied storage
This commit is contained in:
commit
622d31103d
1 changed files with 2 additions and 1 deletions
|
@ -43,6 +43,7 @@ location ~ ^/_storage_proxy/([^/]+)/([^/]+)/([^/]+)/(.+) {
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header Host $3;
|
proxy_set_header Host $3;
|
||||||
|
proxy_set_header Authorization "";
|
||||||
|
|
||||||
add_header Host $3;
|
add_header Host $3;
|
||||||
|
|
||||||
|
@ -334,4 +335,4 @@ location ~ ^/b1/socket(/?)(.*) {
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection "upgrade";
|
proxy_set_header Connection "upgrade";
|
||||||
proxy_read_timeout 300;
|
proxy_read_timeout 300;
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue