Fediversity/matrix/coturn
2024-12-02 15:40:44 +01:00
..
README.md First bit of configuration of coturn added. 2024-12-02 15:40:44 +01:00

Table of Contents

TURN server

You need an TURN server to connect participants that are behind a NAT firewall.

Installation is short:

apt install coturn

For sake of maintainability we'll move the only configuration file into its own directoy:

mkdir /etc/coturn
mv /etc/turnserver.conf /etc/coturn

We need to tell systemd to start it with the configuration file on the new place. Edit the service file with:

systemctl edit coturn

Contrary to what the comment suggests, only the parts you add will override the content that's already there. We have to "clean" the ExecStart first, before we assign a new line to it, so this is the bit we add:

[Service]
ExecStart=
ExecStart=/usr/bin/turnserver -c /etc/coturn/turnserver.conf --pidfile=

This takes care of the configuration file. Now, the configuration itself...