-
-
Save waltspence/2562305ad97ef9039904f94656ed904d to your computer and use it in GitHub Desktop.
reTURN setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##### | |
# TURN Server Setup | |
# Requires SSL setup - see https://gist.github.com/sbeleidy/3a23999d8e9e5da9adc6159c3742b42b | |
##### | |
sudo apt-get update | |
sudo apt-get install resiprocate-turn-server | |
nano /etc/reTurn/reTurnServer.config | |
# Change TurnAddress to your public IP address | |
# Change TurnV6Address to your public IPv6 address | |
# Change logging level to DEBUG from WARNING to follow along with it | |
# Change AuthenicationRealm to the domain name | |
# Change UserDatabaseHashedPasswords to false (for now!) | |
# For SSL support, assuming you used Let's Encrypt as described above: | |
# The dh file is located at /etc/ssl/certs/dhparam.pem | |
# The other tiles are located at /etc/letsencrypt/live/YOURDOMAIN.COM/ | |
# And are called: cert.pem, chain.pem, fullchain.pem, privkey.pem | |
# Change the TLS Settings in reTurnServer.config to: | |
# TlsServerCertificateFilename= /etc/letsencrypt/live/YOURDOMAIN.COM/cert.pem | |
# TlsServerPrivateKeyFilename= /etc/letsencrypt/live/YOURDOMAIN.COM/privkey.pem | |
# TlsTempDhFilename= /etc/ssl/certs/dhparam.pem | |
# Update users in /etc/reTurn/users.txt adding a user:password:domain.com:authorized | |
nano /etc/reTurn/users.txt | |
# Restart the TURN server | |
service resiprocate-turn-server restart | |
# Test it by doing: | |
netstat -nlp | grep reTurnServer | |
# View logs by going to | |
nano /var/log/reTurnServer/reTurnServer.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment