Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sure openresty buffering is turned off #16

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions pkg/rancher-desktop/assets/scripts/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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;
}
}
Expand Down
Loading