OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • Web Proxy Filtering and Caching (Moderator: fabian) »
  • NGINX Reverse Proxy - Upload performance [Nextcloud]
« previous next »
  • Print
Pages: [1]

Author Topic: NGINX Reverse Proxy - Upload performance [Nextcloud]  (Read 7983 times)

rene_

  • Newbie
  • *
  • Posts: 33
  • Karma: 10
    • View Profile
NGINX Reverse Proxy - Upload performance [Nextcloud]
« 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é
Logged

rene_

  • Newbie
  • *
  • Posts: 33
  • Karma: 10
    • View Profile
Re: NGINX Reverse Proxy - Upload performance [Nextcloud]
« Reply #1 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

Logged

GreenMatter

  • Full Member
  • ***
  • Posts: 166
  • Karma: 1
    • View Profile
Re: NGINX Reverse Proxy - Upload performance [Nextcloud]
« Reply #2 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) 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...
Logged
OPNsense on:
Intel(R) Xeon(R) E-2278G CPU @ 3.40GHz (4 cores)
8 GB RAM
50 GB HDD
and plenty of vlans ;-)

GreenMatter

  • Full Member
  • ***
  • Posts: 166
  • Karma: 1
    • View Profile
Re: NGINX Reverse Proxy - Upload performance [Nextcloud]
« Reply #3 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
Logged
OPNsense on:
Intel(R) Xeon(R) E-2278G CPU @ 3.40GHz (4 cores)
8 GB RAM
50 GB HDD
and plenty of vlans ;-)

rene_

  • Newbie
  • *
  • Posts: 33
  • Karma: 10
    • View Profile
Re: NGINX Reverse Proxy - Upload performance [Nextcloud]
« Reply #4 on: July 16, 2020, 10:34:16 pm »
Sorry, didnt looked here for a while.

I will post everything tomorrow :-)
Logged

5k7m4n

  • Newbie
  • *
  • Posts: 20
  • Karma: 0
    • View Profile
Re: NGINX Reverse Proxy - Upload performance [Nextcloud]
« Reply #5 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?
Logged

fabian

  • Moderator
  • Hero Member
  • *****
  • Posts: 2769
  • Karma: 200
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: NGINX Reverse Proxy - Upload performance [Nextcloud]
« Reply #6 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
Logged

doktor_g

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Re: NGINX Reverse Proxy - Upload performance [Nextcloud]
« Reply #7 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...
Logged

PIv0

  • Newbie
  • *
  • Posts: 19
  • Karma: 2
    • View Profile
Re: NGINX Reverse Proxy - Upload performance [Nextcloud]
« Reply #8 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?
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • Web Proxy Filtering and Caching (Moderator: fabian) »
  • NGINX Reverse Proxy - Upload performance [Nextcloud]
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2