[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 58644e036f
commit 09a810f8fb

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;