this post was submitted on 28 Jun 2023
31 points (100.0% liked)

Selfhosted

40731 readers
359 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 2 years ago
MODERATORS
 

I want to selfhost a messaging service for my family. It should be secure and have voice calling option, ideally. Thank you.

top 48 comments
sorted by: hot top controversial new old
[–] scott@lem.free.as 10 points 2 years ago (1 children)

Matrix. With its bridges you can "wire-in" networks like WhatsApp, Slack, Signal, Telegram, Discord, iMessage, SMS, e-mail, ... and have a single app that interacts with them all. You can have a single group chat with users from all those networks participating and no one would be any the wiser.

[–] wgs@lemmy.sdf.org 1 points 2 years ago (1 children)

From my experience (with Dendrite, not synapse, so keep that in mind), bridges create "fake" users to replicate your contacts on these platform as matrix users, and they are visible on the whole instance by all their users (but you might not be able to talk to them). Also, in puppeted mode (which is what you want to "replace" your app with matrix), only a single user can use the bridge at a time, so the other users cannot use it.

[–] scott@lem.free.as 1 points 2 years ago (1 children)

This is true but if you're self-hosting it's not that much bother to add additional copies of a bridge for other users (granted, it's not ideal).

[–] wgs@lemmy.sdf.org 0 points 2 years ago (1 children)

Bridges were not that easy to manage in my case (regarding process management, and ease of config deployment/reproductibility). It was on OpenBSD though, so your mileage may vary. And still, it leaks all of your contact informations to the other users of the server (like their phone number eventually), so definitely not suited for public instances.

[–] SirEDCaLot@lemmy.fmhy.ml 0 points 2 years ago (1 children)

Leaks contact information to the other users? Can you elaborate on that? I haven't heard anything like that

[–] wgs@lemmy.sdf.org 2 points 2 years ago (1 children)

That's from my own experience. I had a self-hosted matrix server running with Dendrite, and the mautrix-whatsapp bridge running. The bridge was running in puppeted mode, so upon synchronizing contacts, the bridge created "fake" users on the matrix server, one for each of my whatsapp contacts. The matrix username of these contacts is (by default) whatsapp_<phone_number>:domain.tld. And these users are visible (at least) by other users on the same server. It was my own instance and I was the sole user so I didn't really care. But when a friend of mine wanted to try matrix, I created an account for him on the server, and when he joined, he could see all the fake whatsapp/telegram/discord users created by the bridge on the server. And as the default username includes the phone number, he basically had access to my whole phone contact list in real time.

[–] SirEDCaLot@lemmy.fmhy.ml 2 points 1 year ago

Very interesting.

https://github.com/matrix-org/synapse/issues/8969 This may be of interest- it's basically the same thing. Seems that before that patch was merged, bridge-created puppet contacts would show up in searches.
Of course that's for Synapse not Dendrite. So it sounds like Dendrite never applied that same functionality.

[–] Dusty@l.dustybeer.com 9 points 2 years ago (1 children)

I host my own matrix instance for my wife, a few friends and I. It has worked great for us. They can either use a web app, or an app on their phone.

[–] randomguy2323@lemmy.fmhy.ml 2 points 2 years ago (1 children)

Hey , do you have a guide on how to host my own matrix server?

[–] Dusty@l.dustybeer.com 6 points 2 years ago (2 children)

I used the official docker image: https://hub.docker.com/r/matrixdotorg/synapse/

My compose file looks like this: https://pastebin.com/3JYzAPr2

Pretty sure I just followed the instructions there.

[–] PoisonedPrisonPanda@discuss.tchncs.de 2 points 2 years ago (1 children)

how have you secured your server when opening your network to the outside?

[–] Dusty@l.dustybeer.com 3 points 2 years ago* (last edited 2 years ago)

I'm using a cloudflare tunnel for it. I also have crowdsec installed, only allow ssh keys and only from my IP (I have a static from my ISP), and no ports open other than the ones needed.

Thanks for sharing. Couldn't get it to work but I'll try again with your compose file.

[–] ElkanNixed@programming.dev 8 points 2 years ago (3 children)

I'm on Signal (obviously not self hosted) and even if I really wanted to move to another platform be it self hosted or yet another privacy focussed one, I can't ask my friends and family to move to another platform again. I already asked them to move away from WhatsApp, can't do it again..

[–] lemba@discuss.tchncs.de 3 points 2 years ago

💯 this. It took me several years to get most of my friends, co-workers and family to Signal...

[–] overzeetop@lemmy.world 1 points 2 years ago

I feel you. My problems with Signal forced me back to iMessage (actually forced me off of android and back to iOS).

I’d never considered Self-hosted messaging. It might be fun to play around with, but I can’t handle the stress of ensuring six 9s uptime for family comms.

[–] ancoraunamoka@lemmy.dbzer0.com -1 points 2 years ago

This is what I told most of my friend when they asked me to move to signal. Is is going to be a very shitty company managed by a shitty egocentric person and you are going to regret. But you will make people move and they won't do it again and won't understand the reasons

[–] curioushom@lemmy.one 7 points 2 years ago

Matrix (synapse server) probably fits the bill.

[–] grannyweatherwax@feddit.nl 5 points 2 years ago
[–] milouse@discuss.tchncs.de 4 points 2 years ago (1 children)

Just for a family and friends I'd go for xmpp. Matrix is still an enormous greavy piece of software, hard to self host if you don't want to pay for a gigantic server just for it. Also the UI is more like gamer/company chat (discord, slack...), what may not be what your family expect, coming from whatsapp, telegram, or plain sms. In the contrary xmpp is very light and nowadays a lot of tutorial exists on how to configure it, even with voice/video. Plus mobile apps like conversation match the habbits of other messengers.

[–] ptman@sopuli.xyz 1 points 2 years ago

This is outdated info. Matrix doesn't need lots of resources these days. "for instance Synapse uses 5-10x less RAM than it used to (my personal federated server is only using 145MB of RAM atm!" - https://matrix.org/blog/2022/08/15/the-matrix-summer-special-2022/#making-it-fast

Host it for free https://paul.totterman.name/posts/free-clouds/ & https://paul.totterman.name/posts/matrix-server-guide/

[–] lemmy@lemmy.quad442.com 3 points 2 years ago

We use Rocketchat and love it. Been thinking about moving to Matrix but, at this point I've got my whole family hooked on Rocket

[–] t3chskel@lemmy.world 3 points 2 years ago (1 children)

We use Matrix (Synapse) and it works extremely well. I just wish I could get a STUN/TURN server working...

[–] ticho@social.fossware.space 0 points 2 years ago (1 children)

My family has been using Synapse since before Covid hit, including TURN server (coturn) for audio and video calls. No complaints about the UI so far, except for Element on iPhone reportedly "freezing" for a few moments when sending messages - and that was over a year ago.

What problems do you have getting TURN to work?

[–] t3chskel@lemmy.world 1 points 2 years ago

I tried setting up coturn with docker but I can't remember offhand what I had issues with. I am running a reverse proxy (Traefik) with wildcard certs. I should dig into it again. Do you happen to have any pointers or any good guides I could try following?

[–] poVoq@slrpnk.net 3 points 2 years ago* (last edited 2 years ago) (1 children)

Don't listen to all the Matrix fanboys here 😅 It's no fun having to manage the massive server application and the mobile apps pretty much suck.

I would go for https://snikket.org/ which is a lightweight all in one solution based on XMPP specifically designed for what you want.

[–] wounn 1 points 2 years ago

Massive server application? Running on a PI 3? If you don't want to federate with massive servers it's super lightweight!

[–] philpo@feddit.de 2 points 2 years ago

Also a vote for Matrix and Synapse. Works great and you can decide if you federate or not.

[–] hitagi@ani.social 2 points 2 years ago

I like Matrix (I mostly use it with my sister) though XMPP might be a good option too if it's just for family.

[–] TrinityTek@lemmy.world 2 points 2 years ago

Another Nextcloud user here. If you setup a Nextcloud server you will see many benefits, with the Talk app being just one of them. Install OnlyOffice and you can even collaboratively edit documents in the web browser similar to Google Docs or o365. I really can't recommend Nextcloud enough. Anyone who is into self hosting should at least give it a try.

[–] fleg@szmer.info 1 points 2 years ago (1 children)

Matrix works, but it's way harder and more expensive to selfhost than for example XMPP, which can be hosted even on cheapest VPS or first RPi. I would definitely take the cost and "how hard is it to maintain in the long run" into consideration.

Mattermost also works and is pretty easy to selfhost, but it doesn't have federation.

Another option is always an email with delta.chat - I don't think it offers voice calling, but email is one of the most basic services one can host, and many automated solutions to help with that exist.

[–] rglullis@communick.news -1 points 2 years ago

The problem of XMPP is not hosting it, it's the clients. Give me one easy-to-use guide to have

  • e2ee text messaging
  • groups
  • audio/video calling

working equally well on desktop, Android and iOS, and I will gladly drop my matrix server.

[–] DAC_Protogen@lemmy.world 1 points 2 years ago (1 children)

Nextcloud looks really great and it has a chat / video chat too, I want to give it a spin in the future, as it also allows you to self-host a lot of things that people usually outsource to Microsoft, Google or Apple.

[–] styx@lemmy.world 1 points 2 years ago (1 children)

The video calls in nextcloud are a bit....hard to make work flawless, lol. You also need some amount of ram and cpu in the server.

[–] DAC_Protogen@lemmy.world 0 points 2 years ago (1 children)

I think you always need some amount of ram and cpu in a server... ;D Well, it's a shame if those video calls aren't working nicely without some fiddling. I'll still set up a Nextcloud at some point, for all that other stuff like calendar, contacts, office, chat and file sync. Kinda enjoying the benefits of cloud synced data, but without a corporation hosting my information and selling me to the advertisement hyenas.

[–] styx@lemmy.world 0 points 2 years ago (1 children)

Heh true that. AFAIR Nextcloud Talk Video calls need few additional stuff to be installed for working outside a LAN. You can check some details here: https://nextcloud-talk.readthedocs.io/en/latest/TURN/

[–] TrinityTek@lemmy.world 0 points 2 years ago (1 children)

I use Nextcloud Talk video calls outside my local LAN and I didn't do anything special other than install the Talk app.

[–] styx@lemmy.world 0 points 2 years ago* (last edited 2 years ago) (1 children)

Nice. Either you are lucky or I'm unlucky :). I have used it with my previous vps which only had 2 GB ram (%94 always full with services and stuff) and 1 core. The experience was not very...convincing. I have yet to test it with my new server though.

[–] TrinityTek@lemmy.world 0 points 2 years ago (1 children)

My ODroid H3+ running my Nextcloud instance is pretty over-specced, with 32 GB RAM and a 2 TB m.2 SSD, so that might explain the differing results. I'm surprised it runs so poorly on less capable hardware though. I actually have another Nextcloud instance running on a minimally specced VPS. I'll test Talk on that instance this evening and see if my results are similar to yours.

[–] styx@lemmy.world 0 points 2 years ago (1 children)

That will be a good test. It will be greatly appreciated if you post your results here or on a separate thread.

[–] TrinityTek@lemmy.world 1 points 2 years ago

I was working on this last night. I had a video call going from my phone on a wireless carrier and my laptop on my home internet using a video call from a Nextcloud instance running on a GoDaddy 1GB RAM 1 core VPS. I left the call running for a good while and was monitoring the server resources. It was using most of the RAM, but with only 1GB that's really not surprising. The CPU usage was pretty low. I would have taken a screenshot but then I managed to crash my laptop working on some other things than the video test at the same time which was dumb on my part. I'll test it more though and let you know how it goes. From what I can see it seemed to work OK but this was just one video call. For multiple simultaneous calls it would probably struggle I guess. Maybe I'll test that too, or at least add another camera into a call.

[–] johntash@eviltoast.org 0 points 2 years ago (2 children)

If you're already using Nextcloud, it has a chat w/ video chat as well.

Matrix / Synapse / Element.io is also pretty cool. The UX might not be on par with what some family expects though. I don't know if voice/video chat is built-in yet or not, but it was at least an option before.

[–] coldhotman@nrsk.no 2 points 2 years ago* (last edited 1 year ago)
[–] stefan@lemmy.kopieczek.com 1 points 1 year ago

Voice / video requires a separate TURN server, IIRC.

load more comments
view more: next ›