I plan to build a load balanced NextCloud

I plan to build a load balanced NextCloud, with one server serving as the nginx reverse proxy and three NextCloud servers. How should I set the header of nginx, and my nginx’s NextCloud port is not a standard HTTPS port.

Simply put, I need a configuration for a reverse proxy for NextCloud

thanks!

Hi,
you can find everything you asked for here.