Avoid creating a temp file on Nginx host
manuelcorona
nginx-forum at forum.nginx.org
Fri Jul 19 21:16:34 UTC 2019
I'm using Nginx in proxy pass mode to serve an application. We have had some
issues where the host running Nginx doesn't have enough space to host some
uploaded files. Is there a way to stream this files to the backend server
without creating a temporary file in the Nginx host?
Based on the post here:
https://serverfault.com/questions/768693/nginx-how-to-completely-disable-request-body-buffering?newreg=990eae88df904d448be4555c0589b7ed
I have tried setting up this config variables:
proxy_http_version 1.1;
proxy_request_buffering off;
client_max_body_size 0;
And all the different combinations of those config variables but I always
see the temp file being written to the Nginx Host.
Is there a way to pass the file without buffering?
I based this configuration based on this ServerFault post:
https://serverfault.com/questions/768693/nginx-how-to-completely-disable-request-body-buffering?newreg=990eae88df904d448be4555c0589b7ed
Posted at Nginx Forum: https://forum.nginx.org/read.php?2,284929,284929#msg-284929
More information about the nginx
mailing list