I'm looking to find a way to offload the burden of uploading a big file from a user's browser to a proxy server in the same office, which can then handle the slow part of the upload (over the Internet).
The goal is to let the user close their browser, restart their machine or whatever, and so long as the POST request was made in full to the proxy, the proxy will then continue the upstream request.
So my question is, can either of the following situations be configured by an Nginx proxy:
- Local proxy returns a status code to the client once it has the full POST request and the client connection can be closed, but the upstream POST continues.
- A status code is returned once the upstream request is completed (normal behaviour), but will continue even if the client connection is closed, provided the full POST was made to the proxy.
I hope that makes sense.
If this cannot be configured, then we'll have to write some software to do the job instead.