I have a Nextcloud instance which achieves around 35MB/s upload and 110MB/s download when accessed directly.
However, when adding NGINX to the equation performance is reduced to around 20MB/s upload and 50MB/s download. They are hosted in different VMs, but in the same server and subnet. It’s clear that the problem is related to the reverse proxy, but I don’t know what can I do to increase performance (VM already has plenty of resources).
Using NPM if that matters.