Conduit is a simple, fast and reliable chat server powered by Matrix https://conduit.rs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.4 KiB

4 years ago
# Setting up TURN/STURN
## General instructions
* This was tested against Conduit(Next), Coturn (Archlinux) and Element (Android)
* Build your own Conduit from source (always recommended). It's dead simple to build.
4 years ago
* Use the NEXT branch as only this branch provides the necessary functionality.
* This documentation assumes you have a [Coturn server](https://github.com/coturn/coturn) up and runnig. See [here](https://github.com/matrix-org/synapse/blob/develop/docs/turn-howto.md) how to get it working with the reference implementation. It's almost the same with Conduit.
## Edit/Add a few settings to your existing conduit.toml
4 years ago
```
# Settings to inform the clients where to find a TURN server
4 years ago
# to enable Audio/Video calls
# domain.tdl should match the REALM setting of coturn
# Adjust this as needed, If you have only one transport write it this way:
# turn_uris = ["turn:domain.tld?transport=tcp"]
turn_uris = ["turn:domain.tdl?transport=udp", "turn:domain.tld?transport=tcp"]
# the value of static-auth-secret of your turnserver
turn_secret = ""
# the default of one day
turn_ttl = 86400
4 years ago
# 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!
4 years ago
#turn_username = ""
#turn_password = ""
```
## Apply setting
Restart Conduit and enjoy audio and/or video call functionality.