I want to use NGINX as a reverse proxy.
Web Browser -> NGING -> backend
I want to handle upload of big files and would like to make it as quick as possible. My idea is to use NGINX to store the big request body to a file and pass to the backend only the temporary location of the file and skip the request body from the forwarded (the one from NGINX to the backend) request
At the moment I use the following
location / {
proxy_set_header X-Request-Body-File $request_body_file;
}
The problem with this configuration is that the request body file is removed before the backend starts to process the request.
Will it be possible to have
client_body_in_file_only proxy;
or
proxy_client_body_in_file clean;
that keeps the request body file until the backend gives back a response
Regards,
Gal
And I would like to set the NGINX to store big request bodies alway to a file and keep them until the complete request is transfered to the backend with the option to not resend the body to the backend.