this post was submitted on 17 Jun 2023
10 points (91.7% liked)

Selfhosted

39275 readers
271 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.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

Hi, I wanted to host a personal Lemmy instance online (for just myself, I don't think I can take the upkeep for other users - please let me know if this is not possible) and wanted to understand how to "attach" a CDN service to it.

The idea behind doing this is that I'm in the US but I'm looking to host a server in Europe. I am looking into Cloudflare's free CDN service, but it would be great if someone could point me towards how I can configure this setup to speed up the loading time for my Lemmy instance (which is going to be far away from me, geographically).

I would also like to know about your setups and how you have hosted Lemmy.

Thanks!

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 0 points 1 year ago (1 children)

Thanks for your comment! Could you tell me why Cloudflare would need for me to use their nameservers to protect my site and proxy traffic through their infrastructure to my instance? I'm very curious about the technical reason for them to ask us to do so

[–] [email protected] 0 points 1 year ago (1 children)

Well if the nameservers went just to your instance, they couldn't provide anything. That address only goes to that machine. To use the cloudflare service, traffic goes there first, then to your instance. Think of a nameserver as an adress. If the content is at your house, then going straight to your house is what you're doing now. There's no wat for cloudflare to get in the middle.

[–] [email protected] 0 points 1 year ago (1 children)

Thank you. I'm trying to understand how exactly is using CF's nameservers letting Cloudflare intercept traffic from around the world to my instance?

[–] [email protected] 1 points 1 year ago (1 children)

When you type a TLD into the internet, a nameserver tells where that address is. Right now it's going to your instance, to work, cloudlfare needs to be the address. Cloudflare isnt something you install on your server, it's a nother server.

[–] [email protected] 1 points 1 year ago

If Cloudflare just needed the address, they could query the domain name I would provide them during the setup process (which they do, in order to set up the CDN). Why their DNS servers instead of my own?

My apologies, I think I'm missing a crucial point here which is why I'm asking the same question multiple times. Thanks so much for your help!