21

I'd like to host lemmy on my LAN and I'd be the only user, no registration open. I would subscribe to communities on other instances and my instance would get the posts and comments. would that work? I don't need it to be accessible from the internet.

top 6 comments
sorted by: hot top controversial new old
[-] housepanther@lemmy.goblackcat.com 10 points 1 year ago* (last edited 1 year ago)

It is very possible to do this! What you need to do is to rent a low-end cloud VPS. Even a 5.00 digital ocean droplet running Ubuntu Linux would do the trick. Then you run an NGINX Proxy Manager reverse proxy with a WireGuard tunnel to the machine that will act as a server for your instance. From there you, you simply set up Let's Encrypt certificates to use with your intended domain. Even though I am not behind CGNAT, I do this and it works very well.

EDIT: If you intend to do this entirely in open source and need some help, I'll offer it. I am pretty passionate about open source and helping others out along the way.

[-] meldrik@lemmy.wtf 4 points 1 year ago

It would need to be accessible from the outside and you can use Cloudflare Tunnel to make that connection.

[-] singinwhale@lmy.singinwhale.com 2 points 1 year ago

Well, you can't get updates from other instances without it being connected to the internet and reachable. So for your usecase you do need it connected to the internet. On the LAN you will only be able to see other instances on the same LAN.

[-] fubo@lemmy.world 2 points 1 year ago

My understanding is that ActivityPub is designed with the expectation that servers can look one another's names up in DNS and initiate TCP connections to one another.

So even if all of your end-users are on your LAN, your instance still needs to have a public address that's discoverable in DNS, etc.

You might be able to rig this up via tunneling, but you'd still need a public address on the other end of the tunnel.

[-] Bldck@beehaw.org 1 points 1 year ago

Your service should be able to reach out of your lan to serve you content. I assume you’re running this as a local service on your PC or as a docker container.

[-] signofzeta@lemmygrad.ml 1 points 1 year ago

If you have CGNAT, you’ll need to use IPv6 to get connections from the internet at large. The downside is that IPv4-only instances won’t be able to communicate with you.

load more comments
view more: next ›
this post was submitted on 06 Aug 2023
21 points (95.7% liked)

Lemmy

11948 readers
1 users here now

Everything about Lemmy; bugs, gripes, praises, and advocacy.

For discussion about the lemmy.ml instance, go to !meta@lemmy.ml.

founded 4 years ago
MODERATORS