Answer the question
In order to leave comments, you need to log in
nginx. How to specify TMP folder to proxy webdav request?
server {
listen 80;
server_name SITE;
location /download {
client_max_body_size 15g;
client_body_temp_path /home/tmp;
proxy_pass http://SITE/download/;
}
}
Answer the question
In order to leave comments, you need to log in
In your case, this is exactly proxying.
The only thing is that you can enable or disable data buffering so that each request is not stored in memory on the first server, but is directly forwarded to the second as requests are received.
Nginx reads the request body up to client_body_buffer_size into memory (16k by default). If it does not fit, it dumps all or only the excess (client_body_in_file_only) into a temporary file along the client_body_temp_path path.
This buffering can be completely disabled proxy_request_buffering.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question