nginx files upload streaming with proxy_pass

前端 未结 3 1202
半阙折子戏
半阙折子戏 2020-12-13 04:02

I configured nginx as reverse proxy to my node.js application for file uploads with proxy_pass directive. It works, but my problem is that nginx waits for the whole file bod

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-13 04:37

    There is no way to (at least as of now). Full request will be always buffered before nginx will start sending it to an upstream. To track uploaded files you may try upload progress module.

    Update: in nginx 1.7.11 the proxy_request_buffering directive is available, which allows to disable buffering of a request body. It should be used with care though, see docs.

提交回复
热议问题