this post was submitted on 23 Oct 2023
1 points (100.0% liked)

Self-Hosted Main

502 readers
1 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

For Example

We welcome posts that include suggestions for good self-hosted alternatives to popular online services, how they are better, or how they give back control of your data. Also include hints and tips for less technical readers.

Useful Lists

founded 1 year ago
MODERATORS
 

Hello Reddit!

Recently I've got myself back into the self-hosting hobby and setup Nextcloud on a server i built myself. (Ryzen 7 5700X, Nvidia RTX 2060 Super, 50 GB RAM XMP enabled - orwhatever the name is on AMD side) Running Debian Stable Bookworm. My services are hosted as docker containers and I'm exposing them throught the nginx-proxy container that has 443 and 80 forwarded.

Currently, I'm using Cloudflare as my DNS provider to protect and proxy my setups. However, I'm not 100% happy with the performance I'm getting from the Cloudflare proxy. Plus my Nextcloud app on android is running alot of double uploads - way more than expected. As a sidenote, I'm also not running my collabora/code server behind a cloudflare proxy because I was experiencing weird issues of some assets in Nextcloud office not rendering correctly if I do. Thus, I'm considering moving some of my services to Cloudflare Tunnel instead.

Now I'm wondering, is there any form of performance benefits between cloudflare proxy and cloudflare tunnel? I know that the main benefit for cloudflare tunnel is security since you have establish the tunnel using cloudflared before you can access the service. But I'm more curious about the difference in performance between these two solutions.

top 10 comments
sorted by: hot top controversial new old
[–] [email protected] 1 points 11 months ago (1 children)

Cloudflare Tunnel's cloudflared links your home to two closest data centres and so should (?) be quicker, but response times would depend on where a user is accessing your service from.

However, given residential ISP speeds and peering in most parts of the world you'd be unlikely to notice any real difference between the two and other than that 'last leg' access tech the processing within Cloudflare's flow is the same whether you use cloudflared or direct proxying.

[–] [email protected] 1 points 11 months ago

Fair point, I don't remember whether my plan was 1000/1000 or 1000/100. Anyways, you are probably right about the difference in performance between Tunnel and Proxy doesn't matter here

[–] [email protected] 1 points 11 months ago

Perhaps a cache bypass would help with the performance issue. More details here.

[–] [email protected] 1 points 11 months ago (2 children)

Unrelated, how do you have 50 gigs of ram? It's not divisible by 4?

[–] [email protected] 1 points 11 months ago (1 children)

My total ram in MiBs (Mebibytes) are 48087. The rest is math shenanigans. Portainer on the othehand shows my RAM memory as 50.6 GB (Gigabytes). So you can do the math and verify the translations ;)

[–] [email protected] 1 points 11 months ago

Ah just portainer being strange then.

Mine also overreports

[–] [email protected] 1 points 11 months ago (1 children)

RAM doesn't need to be divisible by 4. You can mix and match sizes of RAM it's just not advisable.

[–] [email protected] 1 points 11 months ago

I don't believe ddr4/5 are available in 2gb sticks, so everything would be divisible by 4 - a mixture of 4/8/16gb dimms

[–] [email protected] 1 points 11 months ago (1 children)

Sounds like the issue is with your setup. Not Cloudflare. Figure out why android is double uploading.

[–] [email protected] 1 points 11 months ago

I just did some digging around, and it looks like it's a common known issue for the android client:

https://github.com/nextcloud/android/issues/11906

I guess i'd just deal with it for now, hopefully this gets resolved soon.