Update 3. setting up a turn or stun server
This commit is contained in:
parent
93826feb27
commit
fdabfba29d
|
@ -1,12 +1,10 @@
|
|||
Setting up a TURN or STUN server
|
||||
================================
|
||||
#Setting up a TURN or STUN server
|
||||
|
||||
Ring can be configured to use TURN or STUN servers (`RFC5766 <https://tools.ietf.org/html/rfc5766>`_) to establish a connection between two peers.
|
||||
|
||||
In this guide, we will setup a `coturn <https://github.com/coturn/coturn>`_ server. There are other TURN/STUN server implementations available under a free license. See `TurnServer <http://turnserver.sourceforge.net/>`_ and `Restund <http://www.creytiv.com/restund.html>`_.
|
||||
|
||||
1. Installing
|
||||
#############
|
||||
|
||||
COTURN is available in most Linux distributions. On Debian, install it with the following command:
|
||||
|
||||
|
@ -15,7 +13,6 @@ COTURN is available in most Linux distributions. On Debian, install it with the
|
|||
apt-get install coturn
|
||||
|
||||
2. Configuring
|
||||
##############
|
||||
|
||||
Here is a basic ``turnserver.conf`` file:
|
||||
|
||||
|
@ -30,7 +27,6 @@ Here is a basic ``turnserver.conf`` file:
|
|||
no-stun
|
||||
|
||||
3. Creating users on your TURN server
|
||||
#####################################
|
||||
|
||||
To create users on your TURN server, use the ``turnadmin`` binary.
|
||||
|
||||
|
@ -40,7 +36,6 @@ To create users on your TURN server, use the ``turnadmin`` binary.
|
|||
|
||||
|
||||
4. Launching the TURN server
|
||||
############################
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
|
@ -48,15 +43,12 @@ To create users on your TURN server, use the ``turnadmin`` binary.
|
|||
|
||||
|
||||
5. Configuring Ring to authenticate to the TURN server
|
||||
######################################################
|
||||
|
||||
You may configure Ring to use your TURN server from the advanced tab your account settings:
|
||||
|
||||
============== ============================ ======================
|
||||
Field Value Example
|
||||
============== ============================ ======================
|
||||
**server url** host and port of your server 0.0.0.0:10000
|
||||
**username** username bob
|
||||
**password** password secretpassword
|
||||
**realm** realm sfl
|
||||
============== ============================ ======================
|
||||
| Field | Value | Example |
|
||||
|:-----------|:---------------------------:| :------------------:|
|
||||
|**server url**| host and port of your server| 0.0.0.0:10000 |
|
||||
|**username** | username | bob |
|
||||
|**password** | password | secretpassword |
|
||||
|**realm** | realm | sfl |
|
Loading…
Reference in New Issue