Are proxy_buffers best practive in nginx to support nextcloud?

Finishing up install and configuration of both nextcloud and nginx.

Some of the examples I’ve seen look strange to me for large file (50GB+) support, as in this example:

proxy_buffers 16 4k;
proxy_buffer_size 4k;
proxy_buffering off;
fastcgi_request_buffering off;

Doesn’t the 3rd line basically cancel out directives 1 & 2? If not, what do these do and are they needed for large file support? I read the forums hear and nginx support document and don’t understand their role with nextcloud.

Thanks

Are you using Nginx as your web server or as a reverse proxy in front of another web server? If the former (which it sounds like), the proxy* parameters aren’t irrelevant.

Doesn’t the 3rd line basically cancel out directives 1 & 2?

I’m not aware of any official Nextcloud documentation that suggest adjusting/using all three of those proxy directives together.

Some of the examples I’ve seen look strange to me for large file (50GB+) support

As an aside, are you supporting public/anonymous uploads or using third-party WebDAV clients? Just trying to get a sense of what you’re optimizing large file uploads for. :slight_smile:

Thanks for the reply.

Nginx is being used as a reverse SSL proxy and forwarding requests to Apache2/Nextcloud on another box.

For the usage - internal users using the Nextcloud Mac or Windows client as well as the iOS and Android clients. Files uploaded are routinely around 30GB and I wanted to make sure it was future proofed and that Nextcloud was properly configured to support large files.

Thanks