tus / tus-node-server

Node.js tus server, standalone or integrable in any framework, with disk, S3, Azure, and GGC stores.
https://tus.io/
MIT License
814 stars 200 forks source link

Recommended nginx configuration #597

Closed thedentist8 closed 6 months ago

thedentist8 commented 6 months ago

Does anyone use this server behind Nginx as a reverse proxy?

I'm wondering what the recommended configuration is, especially regarding the buffering settings. By default, Nginx buffers the request (the entire body) before sending it to the upstream server for processing.

Murderlon commented 6 months ago

Hi, tusd has it documented:

https://tus.github.io/tusd/getting-started/configuration/#proxies

Expect use respectForwardedHeaders instead of their --behind-proxy flag.

Murderlon commented 6 months ago

Now also documented: c0160eac22e6364d43851a92b3180253475d4bf5