Skip to content
This repository was archived by the owner on Jul 14, 2022. It is now read-only.

Commit c7e11fd

Browse files
author
Valeriano Manassero
authored
Merge pull request #56 from NCCloud/improvements
force buffering off, it doesn't work correctly with lua
2 parents a232e1b + ff35aad commit c7e11fd

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

rootfs/etc/nginx/template/nginx.tmpl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -505,12 +505,10 @@ http {
505505
add_header HTTPS on;
506506
}
507507

508-
client_max_body_size "{{ $cfg.ProxyBodySize }}";
509-
{{ if eq $cfg.ProxyBodySize "0" }}
508+
client_max_body_size 0;
510509
proxy_http_version 1.1;
511510
proxy_buffering off;
512511
proxy_request_buffering off;
513-
{{ end }}
514512

515513
proxy_connect_timeout {{ $cfg.ProxyConnectTimeout }}s;
516514
proxy_send_timeout {{ $cfg.ProxySendTimeout }}s;

0 commit comments

Comments
 (0)