[ci skip] fix: use $http_host in nginx to preserve port in registry redirects
This commit is contained in:
parent
0cce9d350a
commit
adfa05c8d0
1 changed files with 2 additions and 1 deletions
|
|
@ -241,10 +241,11 @@ http {
|
|||
location /v2/ {
|
||||
proxy_pass http://private;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header Connection "";
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
|
||||
proxy_read_timeout 900;
|
||||
proxy_send_timeout 900;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue