issues.jboss.org/projects/PROJQUAY/issues/PROJQUAY-4

Fixes an issue encountered when attempting to pull images from Quay via podman when storage proxying is enabled. Configures nginx to clear the Authorization header to ensure that storage engine does not raise a 400
This commit is contained in:
kbrwn 2019-11-12 13:27:05 -08:00
parent 3a77b5b1a9
commit 92aa3cf963

View file

@ -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;
} }