Local Mastodon Instance

12 days ago by voster99 to c/selfhosted

Hi everyone! I’m looking to run a Mastodon instance on a home server, entirely within LAN, without owning a domain. It does not need to interact with other Mastodon instances, but users on the local server should still be able to follow accounts on other Mastodon servers. Local users should also be able to create posts and see each other’s posts on the local instance. I’d appreciate advice from anyone running Mastodon this way at home. Thanks!

hperrin 27 points 12 days ago

This is not possible. The other servers need to be able to communicate with yours, and for that, yours needs a domain name.

If you only care about local users following other local users, and only other local users, then this is possible. But if you add remote users into the mix, you need to federate, and to federate requires a domain name.

path: 0 26152824, hotness: undefined, score: 27, children: 0
vpzom 14 points 11 days ago

It does not need to interact with other Mastodon instances, but users on the local server should still be able to follow accounts on other Mastodon servers.

This sentence is in conflict with itself, follows are "interaction"

path: 0 26156843, hotness: undefined, score: 14, children: 1
Kirk 4 points 11 days ago

If you're just following you can use an RSS reader

path: 0 26156843 26161118, hotness: undefined, score: 4, children: 0
ahmedezat_katteb 12 points 12 days ago

Adding to why it has to be reachable: when a local user follows someone on another server, that server pushes new posts to your server's inbox, so the remote side has to be able to resolve your domain and connect over HTTPS. A LAN-only box can't receive that.

The least painful compromise is a cheap domain (or a subdomain you control) plus a tunnel or a small VPS acting as reverse proxy, so nothing on your home network is exposed directly. Then close signups so only your household can register. If Mastodon feels heavy for a handful of users, GoToSocial is much lighter on RAM for that use case, though you'd use a separate client app with it.

One thing to decide up front: the domain is baked into every account and can't be changed later without starting over.

path: 0 26153667, hotness: undefined, score: 12, children: 0
Die4Ever 10 points 12 days ago

You can use a subdomain, and I'm pretty sure you can get a subdomain for free. It won't be pretty but it will do what you want.

path: 0 26153656, hotness: undefined, score: 10, children: 1
FrugalBlue 10 points 12 days ago path: 0 26153656 26153774, hotness: undefined, score: 10, children: 0
yuman 8 points 12 days ago

littlefedi is out as of coupla days ago. still in early stage but should cover your use case. local binary, world comms via "lighthouses" don't need domain, vps, etc. there's something strange afoot wrt the author's willingness to be forthcoming about the project's provenance. I'd stay clear for the time being.

path: 0 26155146, hotness: undefined, score: 8, children: 1
Colloidal 4 points 11 days ago

GoToSocial is stable and famously light on server resources.

path: 0 26155146 26157810, hotness: undefined, score: 4, children: 0
ohshit604 8 points 12 days ago

Hi everyone! I’m looking to run a Mastodon instance on a home server, entirely within LAN, without owning a domain

Without a domain you cannot federate with other instances, otherwise how would they know what to call you.

It does not need to interact with other Mastodon instances,

but users on the local server should still be able to follow accounts on other Mastodon servers. Local users should also be able to create posts and see each other’s posts on the local instance.

These two statements contradict each other, you can’t receive content and not send it at the same time, your instance will ideally try to stay in sync with all the other instances, posts and comments included.


Nonetheless when it comes to self hosting (and well literally anything you create) follow the documentation and it will always point you in the right direction.

path: 0 26152591, hotness: undefined, score: 8, children: 0
Zak 6 points 12 days ago

ActivityPub doesn't work that way, but you can follow public Mastodon accounts using RSS.

path: 0 26153500, hotness: undefined, score: 6, children: 0
Buck 4 points 12 days ago

Look into snac2 or littlefedi as alternatives for Mastodon if you want to save resources. Littlefedi has a specific use case to run off the grid

path: 0 26154084, hotness: undefined, score: 4, children: 0
tal 4 points 12 days ago

I don't use Mastodon, but I don't know if it's possible to do this particular combination:

without owning a domain

users on the local server should still be able to follow accounts on other Mastodon servers

Like, a client that supports having accounts on multiple Mastodon servers would work. Then they have a local account, and they have an unrelated account elsewhere on another Mastodon server and follow people using that, so that the "following" has nothing to do with your local server.

But if you want federated behavior, where a user connects to your server and has their account there tell the local Mastodon server to pull down posts from another users somewhere out on another Mastodon server, you might need to have a certificate on your server that other servers recognize as valid, which in practice would mean one signed by a public CA.

I don't know for certain whether this is actually necessary, but I could believe that it is.

path: 0 26152846, hotness: undefined, score: 4, children: 1
ViatorOmnium 4 points 12 days ago

If you go really out of the beaten path, a client that only reads from other instances could use the RSS feed to go around the signed requests.

path: 0 26152846 26153113, hotness: undefined, score: 4, children: 0
Dojan 2 points 12 days ago

Have a look at GoToSocial.

path: 0 26154958, hotness: undefined, score: 2, children: 0
artyom -5 points 12 days ago

entirely within LAN

Wat? LOL

path: 0 26153307, hotness: undefined, score: -5, children: 0
selfhosted
selfhosted

@lemmy.world

login for more options
62974
6798
5683

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:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

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

Questions? DM the mods!

go to feed...