summaryrefslogtreecommitdiff
path: root/TURN.md
blob: ed96295594c8691fd761ae1a008b6336f1a6d88c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Setting up TURN/STURN

## General instructions

* It is assumed you have a [Coturn server](https://github.com/coturn/coturn) up and running. See [Synapse reference implementation](https://github.com/matrix-org/synapse/blob/develop/docs/turn-howto.md).

## Edit/Add a few settings to your existing conduit.toml

```
# Refer to your Coturn settings. 
# `server.name` has to match the REALM setting of your Coturn as well as `transport`.
turn_uris = ["turn:server.name?transport=udp", "turn:server.name?transport=tcp"]

# static-auth-secret of your turnserver
turn_secret = "ADD SECRET HERE"

# If you have your TURN server configured to use a username and password
# you can provide these information too. In this case comment out `turn_secret above`!
#turn_username = ""
#turn_password = ""
```

## Apply settings

Restart Conduit.