Simple(ish) Element Call Setup in Docker Compose #229
Closed
winyadepla
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This is a basic "step by step" guide to setting up Element Call/MatrixRTC for Tuwunel. It is not intended for people with in-depth knowledge, or who wish to customise things. The aim is to enable setting up a working Element Call instance, with instructions that are (relatively) friendly to people with limited knowledge. Each step provides a brief description of what it is doing, followed by a suggested command to complete it.
Requirements
Notes
sudo.yourdomain.comis whatever you have set asserver_namein your tuwunel.toml. This needs to be replaced with the actual domain. It is assumed that you will be hosting MatrixRTC atmatrix-rtc.yourdomain.com. If you wish to host this service at a different subdomain, this needs to be replaced as well.1. Set Up DNS
Create a DNS record for
matrix-rtc.yourdomain.compointing to your server.e.g. an
Arecord formatrix-rtcpointing toyour.server.ip.address.2. Create Docker Containers
mkdir /opt/matrix-rtc.cd /opt/matrix-rtc.nano compose.yaml.mrtckeyandmrtcsecretshould be random strings. It is suggested thatmrtckeyis 20 characters andmrtcsecretis 64 characters.Ctrl+x.nano livekit.yaml.mrtckeyandmrtcsecretshould be the same as those from the compose.yaml.Ctrl+x.3. Configure .well-known
3.1 .well-known served by Tuwunel
Follow this step if your .well-known configuration is served by tuwunel, or if you do not have .well-known delegation configured. Otherwise follow Step 3.2
nano /etc/tuwunel/tuwunel.toml.#rtc_transports = []and edit it to be:Ctrl+x.3.2 .well-known served independently
Follow this step if you serve your .well-known/matrix files directly. Otherwise follow Step 3.1
nano /var//www/.well-known/matrix/client.The final file should look something like this:
{ "m.homeserver": { "base_url":"https://matrix.yourdomain.com" }, "org.matrix.msc4143.rtc_foci": [ { "type": "livekit", "livekit_service_url": "https://matrix-rtc.yourdomain.com" } ] }Ctrl+x.4. Configure Firewall
You will need to allow ports
7881/tcpand50100:50200/udpthrough your firewall. If you use UFW, the commands are:ufw allow 7881/tcpandufw allow 50100:50200/udp.5. Configure Caddy
As Caddy can be installed in different ways, I am not giving step by step instructions for this section.
6. Start Docker Containers
cd /opt/matrix-rtc.docker compose up -d.Element Call should now be working.
Beta Was this translation helpful? Give feedback.
All reactions