NGINX Reverse Proxy - Upload performance [Nextcloud]

Started by rene_, March 16, 2020, 11:48:17 AM

Previous topic - Next topic
Hello everyone,

i am currently trying to setup a nextcloud behind the Nginx reverse proxy of opnsense.

So far so good, i set everything up, the rewrites are working, SSL is working, and i can access the cloud from lan and wan.

But when i upload a file to my cloud, its not faster then about 1MB/s (over lan).

On the cloud vm i can see, that there is no continuously incoming traffic (from the firewall), mor there are peaks at about 90mbit/s ever 2-3 seconds.

What could that be?

Already tried allot of settings in the nginx configs.

Currenlty enabled http2 on both sides, and sendfile in the nginx global settings and the vhost.

Kind regards,
René

Update:

i disabled Response/Request Buffering in the Location, now i have continuously 10MBit traffic load on the cloud vm.


By the way, its a gigabit network, iperf test was around 890MBit in both directions


Hi,

Could you share your settings? I'm trying to achieve similar thing but the only thing I get is "Request Denied". I've added trusted_proxies variable (https://docs.nextcloud.com/server/15/admin_manual/configuration_server/reverse_proxy_configuration.html) in nextcloud config but I'm lost when it comes to Nginx settings in OPNsense. All tutorials keep showing text config with options unavailable (?) in Nginx GUI...
BTW, I'm in process of migrating from Unifi USG 4Pro to OPNsense running as VM on ESXi host. So far so good, but I'm running into problems with Nginx...
OPNsense on:
Intel(R) Xeon(R) E-2278G CPU @ 3.40GHz (4 cores)
8 GB RAM
50 GB HDD
and plenty of vlans ;-)

I don't want to hijack this thread but I'm doing it  ;D
Can anybody help me to configure Nginx reverse proxy for nextcloud...? Plizzz
OPNsense on:
Intel(R) Xeon(R) E-2278G CPU @ 3.40GHz (4 cores)
8 GB RAM
50 GB HDD
and plenty of vlans ;-)

Sorry, didnt looked here for a while.

I will post everything tomorrow :-)

Quote from: rene_ on March 16, 2020, 12:05:27 PM
Update:

i disabled Response/Request Buffering in the Location ...


Did you do this on the Nextcloud or the HAproxy? Could you post instructions?

Quote from: 5k7m4n on July 19, 2020, 06:30:16 PM
Quote from: rene_ on March 16, 2020, 12:05:27 PM
Update:

i disabled Response/Request Buffering in the Location ...


Did you do this on the Nextcloud or the HAproxy? Could you post instructions?
From the description this is nginx, not HAProxy

Same here. Said settings can be made by the Nginx menu, under location.
But speed isn´t much better. In my case, a few kBs...

Hi all!

I have the same problem, how do I set up NGINX under OPNSense to work with Nextcloud?

No one will write step by step what and how to do?