[ci skip] fix: use $http_host in nginx to preserve port in registry redirects

This commit is contained in:
Viktor Barzin 2026-02-28 20:16:03 +00:00
parent 0cce9d350a
commit adfa05c8d0
No known key found for this signature in database
GPG key ID: 0EB088298288D958

View file

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