Postavljanje vlastitog TURN servera
Jami can be configured to use TURN or STUN servers (RFC5766) to establish a connection between two peers.
Pripremni TURN server je „turn.jami.net”, s korisničkim imenom „ring”, lozinkom „ring” i kraljevstvom „ring”.
In this guide, we will setup a coTURN server. There are other TURN/STUN server implementations available under a free license, such as TurnServer and Restund.
Ugradnja
The CoTURN server is available on most Linux distributions. On Debian, install it with the following command:
apt-get install coturn
Konfigiranje
Here is a basic turnserver.conf
configuration file:
listening-port=10000
listening-ip=0.0.0.0
min-port=10000
max-port=30000
lt-cred-mech
realm=sfl
This also will function as a STUN server. The STUN server does not require a username and password (A STUN server uses very little bandwidth).
Kreiranje korisnika na vašem TURN serveru
Za stvaranje korisnika na vašem TURN serveru, koristite binarni turnadmin
(to može zahtijevati ovlaštenja nadupisnika).
turnadmin -a -u bob -p secretpassword -r sfl
Pokretanje TURN-a
turnserver -c turnserver.conf
Konfiguriranje Jami-a za autentifikaciju s TURN serverom
Možete konfigurirati Jami da koristi svoj TURN server iz naprednog dijela postavki računa:
Polje |
Sredstva |
Primjer |
---|---|---|
** server url** |
host i port vašeg servera |
0.0.0.0:10000 |
** korisničko ime** |
korisničko ime |
bob |
Kroznica |
lozinka |
tajna lozinka |
** kraljevstvo** |
Kraljevstvo |
SFR |