Welcome! Log In Create A New Profile


Avoid creating a temp file on Nginx host

July 19, 2019 05:16PM
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
Subject Author Posted

Avoid creating a temp file on Nginx host

manuelcorona July 19, 2019 05:16PM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 90
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready