Hello,
we use Nginx as reverse proxy for several websites. One of your sites provides uploads of huge files (> 2gb).
The nginx Server is hosted on a small linux box (without much resources (ram/hd).
Nginx caches large files in temp path and sends the request after the whole file is processed by nginx to the backend.
We are looking for a direct streaming solution.
Additionally we use some kind of XSRF Token on backend which is only valid for several seconds, but in case of huge uploads the token gets invalid because the request on backend starts after the whole file is uploaded to nginx server.
I have read about several solutions (upload module, lua resty upload, client_body_in_file_only) which all deal with storing the files on nginx box and striping the body for backend with additional headers to process the temp file directly on the backend.
We don't want to modify our applications to handle uploads in that way (it feels a little bit hackish).
Are there any working solution to send the body in junks to the backend server?
Kind Regards
Offtopic
we use Nginx as reverse proxy for several websites. One of your sites provides uploads of huge files (> 2gb).
The nginx Server is hosted on a small linux box (without much resources (ram/hd).
Nginx caches large files in temp path and sends the request after the whole file is processed by nginx to the backend.
We are looking for a direct streaming solution.
Additionally we use some kind of XSRF Token on backend which is only valid for several seconds, but in case of huge uploads the token gets invalid because the request on backend starts after the whole file is uploaded to nginx server.
I have read about several solutions (upload module, lua resty upload, client_body_in_file_only) which all deal with storing the files on nginx box and striping the body for backend with additional headers to process the temp file directly on the backend.
We don't want to modify our applications to handle uploads in that way (it feels a little bit hackish).
Are there any working solution to send the body in junks to the backend server?
Kind Regards
Offtopic