-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Begin work on post regarding Matrix-Signal bridge
- Loading branch information
1 parent
eec1b1c
commit b023e49
Showing
2 changed files
with
54 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
--- | ||
title: Simple Signal-Matrix Bridge in Docker | ||
date: 2023-12-18 | ||
# summary: | ||
draft: true | ||
# tags: ["signal", "matrix"] | ||
description: Setting up a (simple) bridge between Matrix and Signal | ||
--- | ||
In September of 2023, I wrote a [post](/blog/2023/setting-up-synapse/) regarding how to set up a simple Matrix server. Personally, I think that Matrix is a cool protocol, but I don't use it much (at the time of writing). However, I love the ability to bridge chat services. Beeper, the company which has recently been in the news for developing a native Android iMessage client, originally started out bridging chat services. Whilst their service itself is proprietary (at the time of writing), the bridges they use are open source. They have a [guide](https://github.com/beeper/self-host) on how to self-host various bridges and Matrix with Ansible. I have not gotten around to learning Ansible, so I manually set up the Docker containers. | ||
|
||
## Setup | ||
I have a Synapse server running in Docker on port 8007 locally. Thus, the following instructions assume that Synapse is running on port 8007. If you're running Synapse on a different port, change the port in the following commands. | ||
In addition, I will be using `matrix.example.com` as the server hostname. | ||
1. Create a new directory for the bridge. | ||
``` | ||
mkdir signal-matrix-bridge | ||
cd signal-matrix-bridge | ||
``` | ||
2. Use your preferred text editor to create a file named `docker-compose.yml` with the following contents. Most of this configuration is taken from the [Mautrix guide](https://docs.mau.fi/bridges/general/docker-setup.html?search=&bridge=signal#docker-compose) and as detailed, ideally, the bridge and Synapse should be on the same network. As this is just a simple server that I'm not using for mission-crucial purposes, I'm not too concerned about this. I've left the comments in the file for reference. | ||
``` | ||
version: "3.7" | ||
services: | ||
mautrix-signal: | ||
container_name: mautrix-signal | ||
image: dock.mau.dev/mautrix/signal:latest | ||
restart: unless-stopped | ||
volumes: | ||
- .:/data | ||
# If you put the service above in the same docker-compose as the homeserver, | ||
# ignore the parts below. Otherwise, see below for configuring networking. | ||
# If synapse is running outside of docker, you'll need to expose the port. | ||
# Note that in most cases you should either run everything inside docker | ||
# or everything outside docker, rather than mixing docker things with | ||
# non-docker things. | ||
ports: | ||
- "29328:29328" | ||
# You'll also probably want this so the bridge can reach Synapse directly | ||
# using something like `http://host.docker.internal:8008` as the address: | ||
#extra_hosts: | ||
#- "host.docker.internal:host-gateway" | ||
|
||
# If synapse is in a different network, then add this container to that network. | ||
#networks: | ||
#- synapsenet | ||
# This is also a part of the networks thing above | ||
#networks: | ||
# synapsenet: | ||
# external: | ||
# name: synapsenet | ||
``` | ||
3. |
Submodule PaperMod
updated
26 files
+1 −1 | .github/ISSUE_TEMPLATE/bug_report.md | |
+3 −3 | .github/workflows/gh-pages.yml | |
+4 −2 | README.md | |
+3 −5 | assets/css/common/main.css | |
+7 −3 | assets/css/common/post-entry.css | |
+17 −12 | assets/css/common/post-single.css | |
+5 −4 | assets/css/common/profile-mode.css | |
+6 −0 | assets/css/core/zmedia.css | |
+3 −3 | assets/js/fuse.basic.min.js | |
+33 −0 | i18n/cs.yaml | |
+10 −3 | layouts/_default/archives.html | |
+4 −0 | layouts/_default/baseof.html | |
+11 −4 | layouts/_default/list.html | |
+57 −25 | layouts/_default/rss.xml | |
+1 −1 | layouts/_default/search.html | |
+11 −4 | layouts/_default/single.html | |
+6 −5 | layouts/partials/cover.html | |
+1 −1 | layouts/partials/home_info.html | |
+1 −1 | layouts/partials/index_profile.html | |
+67 −53 | layouts/partials/share_icons.html | |
+4 −3 | layouts/partials/social_icons.html | |
+13 −4 | layouts/partials/svg.html | |
+16 −1 | layouts/partials/templates/opengraph.html | |
+20 −3 | layouts/partials/templates/twitter_cards.html | |
+2 −2 | layouts/partials/toc.html | |
+1 −1 | theme.toml |