apt-get update && apt-get install -y coturn && apt-get clean
# vi /etc/environment TURN_PORT=3478 TURN_PORT_START=10000 TURN_PORT_END=20000 TURN_SECRET=yoursecretkey TURN_SERVER_NAME=turn TURN_REALM=YOURDOMAINNAME
source /etc/environment
sudo vi /etc/default/coturn
TURNSERVER_ENABLED=1
turnadmin -k -u USERNAME -r YOURDOMAINNAME -p PASSWORD
sudo vi /etc/turnserver.conf
user=USERNAME:PASSWORD
sudo service coturn restart