diff --git a/drone/nginx.conf b/drone/nginx.conf index df0441d0da1c93c21aedae687cb0f688396ce5d6..d37b4fe0f144b0ea8065865d3dc3707f36d71fe3 100644 --- a/drone/nginx.conf +++ b/drone/nginx.conf @@ -49,13 +49,16 @@ http { server_name _; location / { - access_log /var/log/drone/access_log api_log buffer=32k flush=5s; + #access_log /var/log/drone/access_log api_log buffer=32k flush=5s; # switch to this to log in jsonl format instead access_log /var/log/drone/access_log.json json_log buffer=32k flush=5s; proxy_pass http://drone; # Allow fast streaming HTTP/1.1 pipes (keep-alive, unbuffered) proxy_http_version 1.1; - proxy_request_buffering off; + + client_body_buffer_size 128k; # Adjust size as needed + proxy_request_buffering on; + client_body_in_single_buffer on; proxy_buffering off; #proxy_set_header forwarded 'by=\"_$hostname\";$for_addr;proto=$scheme;host=\"$http_host\"'; }