OPNsense Forum

English Forums => Web Proxy Filtering and Caching => Topic started by: rene_ on March 16, 2020, 11:48:17 AM

Title: NGINX Reverse Proxy - Upload performance [Nextcloud]
Post by: rene_ on March 16, 2020, 11:48:17 AM
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é
Title: Re: NGINX Reverse Proxy - Upload performance [Nextcloud]
Post by: rene_ on March 16, 2020, 12:05:27 PM
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

Title: Re: NGINX Reverse Proxy - Upload performance [Nextcloud]
Post by: GreenMatter on June 16, 2020, 04:57:41 PM
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 (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...
Title: Re: NGINX Reverse Proxy - Upload performance [Nextcloud]
Post by: GreenMatter on June 17, 2020, 07:33:46 PM
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
Title: Re: NGINX Reverse Proxy - Upload performance [Nextcloud]
Post by: rene_ on July 16, 2020, 10:34:16 PM
Sorry, didnt looked here for a while.

I will post everything tomorrow :-)
Title: Re: NGINX Reverse Proxy - Upload performance [Nextcloud]
Post by: 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?
Title: Re: NGINX Reverse Proxy - Upload performance [Nextcloud]
Post by: fabian on July 19, 2020, 08:13:25 PM
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
Title: Re: NGINX Reverse Proxy - Upload performance [Nextcloud]
Post by: doktor_g on October 21, 2021, 12:15:15 AM
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...
Title: Re: NGINX Reverse Proxy - Upload performance [Nextcloud]
Post by: PIv0 on November 03, 2022, 08:58:27 AM
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?