Matrix
We are currently setting up a test server for Matrix. We use Synapse. If everything goes well, we will set up a production Matrix server.
Server Setup
We are currently running Matrix on a Proxmox LXE container on citric-acid. Ask Siracha for the credentials to access Proxmox and the VM.
Matrix Installation
We are using NixOS, so the config to setup both Synapse and PostgreSQL is hosted at https://git.csclub.uwaterloo.ca/k95ma/matrix-nixos/.
The reverse proxy, Caddy is configured on citric-acid.
Testing
Go to https://app.cinny.in/login/csclub.uwaterloo.ca, and click "Continue with CSC".
Bridging
We are currently running mautrix-discord. Bridge to IRC via heisenbridge may be added in the future.
Discord Instructions
- Create the Matrix channel to bridge to
- Invite @beefbot:csclub.uwaterloo.ca and @discordbot:csclub.uwaterloo.ca to the channel
- Login to User `beefbot` (ask syscom for password) on our matrix instance (when we eventually disable password login, you will need to edit the nix config to re-enable it)
- Open the DM with @discordbot:csclub.uwaterloo.ca on beefbot's account, _inside_ the matrix channel, send, `!discord bridge <channel ID>` (the channel ID on Discord, the Discord bot must be able to see that channel)
- Create a Discord Webhook URL for that channel on Discord's side, and then DM the discord bot with `!discord set-relay !26DmcJd3cQ...:csclub.uwaterloo.ca --url https://discord.com/...` with the first argument replaced by the actual room identifier and the second parameter the webhook URL.