From 24f930590a5b622a4d4ee5eedce5820178b45e04 Mon Sep 17 00:00:00 2001 From: Jan Dubois Date: Wed, 12 Feb 2025 15:14:39 -0800 Subject: [PATCH] Make sure openresty buffering is turned off This is unfortunately a bit of cargo-cult, to see if it will the fix the timeout errors from allowed-images.bats on M1 mac minis: > upstream timed out (110: Operation timed out) while connecting to upstream, > client: 127.0.0.1, server: mitm, > request: "HEAD /v2/rancher-sandbox/bats/ruby/manifests/latest HTTP/1.1", > upstream: "https://140.82.112.34:443/v2/rancher-sandbox/bats/ruby/manifests/latest", > host: "ghcr.io" Signed-off-by: Jan Dubois --- pkg/rancher-desktop/assets/scripts/nginx.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/rancher-desktop/assets/scripts/nginx.conf b/pkg/rancher-desktop/assets/scripts/nginx.conf index 172fd65bafe..5609f0dc10f 100644 --- a/pkg/rancher-desktop/assets/scripts/nginx.conf +++ b/pkg/rancher-desktop/assets/scripts/nginx.conf @@ -172,6 +172,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; } }