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.

  • HousePanther@lemmy.goblackcat.com
    link
    fedilink
    English
    arrow-up
    11
    ·
    edit-2
    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
    link
    fedilink
    English
    arrow-up
    4
    ·
    1 year ago

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

  • fubo@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    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.

  • singinwhale@lmy.singinwhale.com
    link
    fedilink
    English
    arrow-up
    2
    ·
    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.

  • Bldck@beehaw.org
    link
    fedilink
    English
    arrow-up
    1
    ·
    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
    link
    fedilink
    English
    arrow-up
    1
    ·
    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.