this post was submitted on 08 Feb 2024
24 points (96.2% liked)

Selfhosted

40132 readers
563 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
 

Hiya.

Because a certain country I'm a citizen of likes messing with international traffic, I've been increasingly aware of the fact web services can break here overnight. One of the things I've still yet to move somewhere more local (or at least have a reasonable backup plan) is messaging.

Matrix seems to be a decent enough replacement for Discord and Telegram in case things go south, but I'm a total brokie. What would be the be the least resource intensive server to put on a VPS in case I'll need to do it, and would I lose out much in features (say, multiuser voice chats) if I were to use that least resource intensive server?

Cheers.

top 13 comments
sorted by: hot top controversial new old
[–] smileyhead@discuss.tchncs.de 20 points 9 months ago

Do not enter very large rooms (especially Matrix HQ!) and you'll be fine.

I know it sounds extreme, but you may want to ban Matrix HQ from the start and just infrom anyone wanting to join your instance if they are ok with that. This room alone is a spam anyway and it took >100GB of space on my database, cleaning wasn't simple.

Write me a message if you want any help 😊.

[–] poVoq@slrpnk.net 12 points 9 months ago* (last edited 9 months ago) (3 children)

Depending on your use of Matrix you will run into memory and disk spaces issue pretty soon. Basically if you plan to participate in large public Matrix rooms it will not work on a cheap VPS because of that. However if you mainly use it for private messaging between friends etc. it will likely work.

That said, personally I think XMPP is better for that use-case as the mobile apps are easier to use and use less battery. The easiest way to set up a personal XMPP server for friends and family is https://snikket.org

XMPP servers are super resource efficient, so even the cheapest VPS will not have any problems with it.

[–] ssdfsdf3488sd@lemmy.world 3 points 9 months ago

Just came here to say this, it workson a 10 dollar a year racknerd vps for me no problem. Matrix chugs on my much bigger vps, although it is sharing that with a bunch of other things, overall it should have mich more resources.

[–] Dran_Arcana@lemmy.world 2 points 9 months ago (1 children)

has xmpp figured out carbons yet between multiple clients? also are there any good mobile clients?

[–] poVoq@slrpnk.net 2 points 9 months ago
[–] rambos@lemm.ee 1 points 9 months ago (1 children)

Im looking for simmilar thing as OP, a private chat server for 3-5 users. Your post seems super usefull.

I've checked snikkets docker-compose and there are proxy and certs containers included. Can I use existing NPM reverse proxy with that docker-compose do you know? Asking before I start modifying docker-compose on my own trial and error approach

[–] poVoq@slrpnk.net 2 points 9 months ago (1 children)

Hmm, maybe it is possible, but Snikket is quite opinionated and you need to keep in mind that the XMPP server also needs direct access to the TLS certificate as it isn't only using port 443.

Maybe it will be better to just use Prosody (or Ejabberd) instead then.

[–] rambos@lemm.ee 1 points 9 months ago

Thanks, Ill check that out

[–] Im_old@lemmy.world 6 points 9 months ago

I host mine (for two users + WhatsApp bridge) on a 4gb 1vcpu vm. When I was using a smaller vm with only 2gb of ram it would hang frequently due to memory exhausting and swapping. I'm using a debian image, and the different components of matrix are containers.

[–] Max_P@lemmy.max-p.me 4 points 9 months ago

Mine's running on a VM with 2c/4t 2GB of RAM it shares with my Lemmy instance and it's been working fine. I'm running Synapse, there's more lightweight alternatives as well.

The Matrix servers don't do all that much, it's pretty much just plumbing data streams and storing data. You need enough disk to store all the messages and reactions and enough bandwidth to sync the rooms, and that's about it. Most of the encryption is client-side for proper E2EE, so it just moves data around.

[–] excitingburp@lemmy.world 4 points 9 months ago

Probably less resource intensive: https://conduit.rs/.

[–] Decronym@lemmy.decronym.xyz 1 points 9 months ago* (last edited 9 months ago)

Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:

Fewer Letters More Letters
SSL Secure Sockets Layer, for transparent encryption
TLS Transport Layer Security, supersedes SSL
VPS Virtual Private Server (opposed to shared hosting)

2 acronyms in this thread; the most compressed thread commented on today has 9 acronyms.

[Thread #499 for this sub, first seen 9th Feb 2024, 11:35] [FAQ] [Full list] [Contact] [Source code]

[–] possiblylinux127@lemmy.zip 1 points 9 months ago

I would be very hesitant to switch to Matrix as I've had some bad experiences with it and it is prone to memory leaks.

If you are really that concerned you could switch to Briar. Briar is totally decentralized so it is very hard to censor. The downside is that you may not receive messages if your offline. You can get around this with briar mailboxes on a old phone.