Just wanna update: the UDP mux option works! Rather than opening thousands of ports, you’d now only need to open 3 or 4. I’ve got 7881/tcp, 7882-7883/udp, and livekit’s HTTP backend fronted by a reverse proxy, and that’s all for calls in most circumstances.
Comment on Self-hosting messenger infrastructure
stratself@lemdro.id 2 weeks ago
If you choose to go with Matrix, I would strongly recommend you to give the Continuwuity server a try. It is quite simple to install, much less resource-intensive than the commonly-used Synapse, and has an active community behind it.
apparently, I need a TURN server to get this working properly
Do note, Matrix recently has a new calling stack called MatrixRTC, and for that you would be setting up LiveKit in place of a TURN server. That also opens many ports by default, but I think there is a “UDP mux” mode that listens all on one port. I’ll be looking into it soon.
The other alternative is XMPP, which is a bit more complex to set up (more ports, non-HTTP protocol, more subdomains, various opt-in features) but is generally more lightweight and fast. ejabberd is my choice, but people tend to like Prosody and Snikket as well. While they use the traditional TURN servers for calls, their clients could use a lot of improvements though…
So yeah, my Continuwuity and the XMPP server sits on a small homelab machine, and with some extra tuning and grit, they:re totally federable. LiveKit and TURN sits on a VPS for better network performance. To be honest, I do all of this mainly because I wanna talk to cool people on the internet, so the service has to be federatable.
stratself@lemdro.id 2 weeks ago
ArborNode@lemmy.shutes.org 2 weeks ago
Plus one for continuwuity. Setting up that and livekit for RTC connection was pretty simple following the instructions. Its been simple to maintain and the clients have improved recently. We have messaging plus voice and video calls working great and I have no issues with notifications that used to plague the matrix clients in the past. I self host a Cinny instance as a web hosted client as well.