this post was submitted on 26 Jun 2023
56 points (96.7% liked)

Selfhosted

40391 readers
584 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 just set it up today. The docker setup was pretty easy and I got the telegram and WhatsApp bridge running so I have all my messages in one place. Signal bridge is next.

Is anyone else doing this?

top 34 comments
sorted by: hot top controversial new old
[–] JackLSauce 7 points 1 year ago (1 children)

Is there anywhere I can go to learn about what exactly Matrix is?

It's not exactly easy to find with via search engine thanks to the movie

[–] [email protected] 5 points 1 year ago (1 children)

Honestly I'd probably host my own Matrix if Conduit wasn't still so behind on stuff. Like, I think they still don't support spaces properly, right?

Even Dendrite feels far too heavy and that's intended to be the "light" option compared to Synapse, which needs an entire server onto itself to have any kind of speed behind it.

[–] [email protected] 1 points 1 year ago (1 children)

Synapse really isn't that bad unless you're joining big rooms. I held off for ages because I thought it was a pig, but I have it running (along with a bunch of other stuff) just fine on a minimal VPS.

[–] [email protected] 0 points 1 year ago (1 children)

I've also got synapse running on my small home server, together with about 40 other things in docker containers. CPU sits idle at 5%

[–] TwinTurbo 1 points 1 year ago

What’s the RAM and storage usage like?

[–] [email protected] 4 points 1 year ago

I’ve installed it in the last few days. Got the Discord and WhatsApp bridge up and running. About to give the iMessage bridge a go. It’s been fairly smooth sailing so far!

[–] [email protected] 4 points 1 year ago (3 children)

I was looking at setting up one for the same reason, to have most of not all of my chat apps in the same place but I was only finding docs for the docker-ansible setup which isn't really what I want. Can you share your docker-compose file or the docs you used to get everything setup?

[–] [email protected] 3 points 1 year ago* (last edited 1 year ago)

Here is my compose file:

version: '3.3'

services:
  app:
    image: matrixdotorg/synapse
    restart: unless-stopped
    ports:
      - 8008:8008
    volumes:
      - ./data:/data
    hostname: matrix

  mautrix-telegram:
    container_name: mautrix-telegram
    image: dock.mau.dev/mautrix/telegram
    restart: unless-stopped
    volumes:
      - ./mautrix-telegram-data:/data
    hostname: mautrix-telegram

  mautrix-whatsapp:
    container_name: mautrix-whatsapp
    image: dock.mau.dev/mautrix/whatsapp
    restart: unless-stopped
    volumes:
      - ./mautrix-whatsapp-data:/data
    hostname: mautrix-whatsapp

I have nginx running as a reverse proxy on the host. I haven't gotten the federation to work yet but I think it's an ipv6 issue.

Setting up the bridges was quiet easy using these instructions

Let me know if you have anymore questions. It's running on a small host with 40 docker containers running in parallel and the cpu sits idle at 5% so it's not much of a drain.

[–] [email protected] 2 points 1 year ago

Yeah I'd be interested in this too. Firsting tim looking into matrix and I see all the bridges you can make and such and in highly interested now.

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago) (1 children)

I too would be interested in this compose file, if it's not too much trouble!

Edit: a word

[–] [email protected] 1 points 1 year ago

See my reply to the comment above. I made the post right before bed so it took some time

[–] TwinTurbo 3 points 1 year ago

What is the use of the bridges? Are they proxies between Matrix and other messaging platforms so that you can see and reply to external messages from your Matrix client?

[–] p5f20w18k 2 points 1 year ago

Had it set up for a few weeks, no bridged though, running in docker so not sure how I'd set them up

[–] [email protected] 2 points 1 year ago (1 children)

I used to do it, but not anymore as it was kind of clunky in my case. But I used dendrite as the matrix server rather than Synapse, so that's most likely the reason.

I ended up moving the database on a separate host rather than using SQLite, and it added way too much latency to the whole system. Storage was also a big issue in my case, as all media received by the bridges are stored locally, and boy does it grow fast in my case haha.

When dendrite reaches a more mature state, I'll 100% do it again though !

[–] [email protected] 1 points 1 year ago (2 children)

I'll have to look out for the media storage issue. Do you know of any way to clean it up periodically?

[–] [email protected] 2 points 1 year ago

I never looked it up. I used to delete media from the folder from a crontab when they were older than a month, but I had errors in the dendrite and bridge logs (though the application seemed to work "fine"). Don't let it fill up though, because it completely fucked up my dendrite install and I had to reinstall and reconfigure all bridges from scratch when it happened.

[–] Enoril 1 points 1 year ago* (last edited 1 year ago)

You have a parameter to delete media not used since a period of time.

Look for the keyword 'media_retention' in the configuration page.

https://matrix.org/blog/2022/06/17/synapse-1-61-released/

The same logic exist for rooms messages, I'm currently testing these setting for my own server (mainly used to replace my discord reporting bots using webhook)

[–] [email protected] 2 points 1 year ago (2 children)

For the whatsapp bridge, don't you require a phone on 24/7?

[–] [email protected] 7 points 1 year ago (1 children)

Since Whatsapp added multi-client support this is AFAIK not needed anymore.

[–] [email protected] 1 points 1 year ago (1 children)

How recent is this? When I had a bridge running it would bug me about WhatsApp having been offline for 12 days, and to re-connect before 14 days pass

[–] [email protected] 1 points 1 year ago (1 children)

Not sure to be honest. I am going off the Slidge WhatsApp bridge for XMPP which AFAIK uses the same library as the Matrix bridge and Slidge definitely doesn't need a phone connected.

[–] [email protected] 1 points 1 year ago

I used my matrix-whatsatpp bridge exclusively, but the bridge warned me that it would time out if my WhatsApp phone connection was inactive for more than two weeks. Maybe I should just try and see what happens anyway

[–] [email protected] 2 points 1 year ago

It requires that you open Whatsapp at least every 2 weeks to refresh the token. The bridge will even send you a message to remind you that before it's too late.

[–] [email protected] 2 points 1 year ago

I wish matrix would not be so slow for big rooms

[–] Oxff 1 points 1 year ago

Been running Conduit for some time now, it's been great fun.

[–] [email protected] 1 points 1 year ago (1 children)

Which image did you use? Thinking about going this but haven't looked much into it

[–] [email protected] 2 points 1 year ago

I posted my compose file here

[–] [email protected] 1 points 1 year ago (1 children)

Do you happen to have a link or instructions on how you set this up? @flauschke

[–] [email protected] 2 points 1 year ago (1 children)

This is the instructions that I followed for the matrix server, followed by the bridge setup

[–] [email protected] 1 points 1 year ago
load more comments
view more: next ›