diff --git a/pkg/rancher-desktop/assets/scripts/nginx.conf b/pkg/rancher-desktop/assets/scripts/nginx.conf index 172fd65bafe..1284d7fd881 100644 --- a/pkg/rancher-desktop/assets/scripts/nginx.conf +++ b/pkg/rancher-desktop/assets/scripts/nginx.conf @@ -163,6 +163,12 @@ http { proxy_ssl_verify_depth 2; location ~ ^/v[12]/(.+)/manifests/([^/]+)$ { + # not sure if this is really necessary + client_max_body_size 0; + # make sure buffering is really turned off even when using chunked transfers + proxy_http_version 1.1; + proxy_request_buffering off; + if ($forbidden) { add_header "Content-type" "application/json" always; # `code` from https://github.com/distribution/distribution/blob/main/registry/api/errcode/register.go @@ -172,6 +178,12 @@ http { } location / { + # not sure if this is really necessary + client_max_body_size 0; + # make sure buffering is really turned off even when using chunked transfers + proxy_http_version 1.1; + proxy_request_buffering off; + proxy_pass https://$http_host; } }