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:
Joseph Schorr 2019-11-14 12:35:41 -06:00 committed by GitHub
commit 622d31103d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -43,6 +43,7 @@ location ~ ^/_storage_proxy/([^/]+)/([^/]+)/([^/]+)/(.+) {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $3;
proxy_set_header Authorization "";
add_header Host $3;
@ -334,4 +335,4 @@ location ~ ^/b1/socket(/?)(.*) {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 300;
}
}