tuto:linux_divers:visio_join_the_room

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
tuto:linux_divers:visio_join_the_room [20/02/2014 13:22]
dani
tuto:linux_divers:visio_join_the_room [20/02/2014 15:52] (Version actuelle)
dani
Ligne 62: Ligne 62:
 <code bash> <code bash>
 cat<<'EOF' > /etc/httpd/conf.d/jointheroom.conf cat<<'EOF' > /etc/httpd/conf.d/jointheroom.conf
-Alias /jointheroom /opt/jointheroom 
- 
 <Directory /opt/jointheroom> <Directory /opt/jointheroom>
     Options None     Options None
Ligne 69: Ligne 67:
     Require all granted     Require all granted
 </Directory> </Directory>
 +
 +<VirtualHost *:80>
 +    ServerName visio.firewall-services.com
 +    DocumentRoot /opt/jointheroom
 +    RewriteEngine on
 +    RewriteRule ^/(.*|$) https://%{HTTP_HOST}/$1 [L,R]
 +</VirtualHost>
 +<VirtualHost *:443>
 +    ServerName visio.firewall-services.com
 +    SSLEngine on
 +    DocumentRoot /opt/jointheroom
 +    #RewriteEngine on
 +    ProxyPass /socket.io/1/websocket ws://localhost:8888/socket.io/1/websocket
 +    ProxyPassReverse /socket.io/1/websocket ws://localhost:8888/socket.io/1/websocket
 +    ProxyPass /socket.io/ http://localhost:8888/socket.io/
 +    ProxyPassReverse /socket.io/ http://localhost:8888/socket.io/
 +    <Location /socket.io/>
 +        Require all granted
 +    </Location>
 +</VirtualHost>
 +
 +EOF
 +cat <<'EOF' > /etc/httpd/conf.modules.d/00-proxy_ws.conf
 +LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so
 EOF EOF
 systemctl enable httpd.service systemctl enable httpd.service
Ligne 88: Ligne 110:
   * Configurez le démon:   * Configurez le démon:
 <code bash> <code bash>
-cat <<'EOF' > /etc/sysconfig/turnserver+cp -a /etc/turnserver/turnserver.conf /etc/turnserver/turnserver.conf.orig 
 +cat <<'EOF' > /etc/turnserver/turnserver.conf 
 +userdb /etc/turnserver/turnuserdb.conf 
 +verbose 
 +fingerprint 
 +lt-cred-mech 
 +no-sslv2 
 +no-loopback-peers 
 +# Ajustez cette valeur 
 +realm firewall-services.com 
 +# decommentez et ajustez les chemins pour les connexions TLS 
 +#cert /etc/pki/tls/certs/xxx.firewall-services.com.crt 
 +#pkey /etc/pki/tls/private/xxx.firewall-services.com.key 
 +proc-user turnserver 
 +proc-group turnserver 
 +EOF 
 +cat <<'EOF' >> /etc/turnserver/turnuserdb.conf 
 +jointheroom:secret 
 +EOF 
 +</code>
  
-EXTRA_OPTIONS="-v -a -f -r __DNSDOMAINNAME__"+===== Ajustez Join The Room ===== 
 +IL ne reste plus qu'à ajuster 1 fichier dans l'application pour utiliser vos propres serveurs de signalement et STUN/TURN:
  
-EOF +  * Dans /opt/jointheroom/js/appObject.js ligne 14, changez 
-sed -i -e "s/__DNSDOMAINNAME__/$(dnsdomainname)/g" /etc/sysconfig/turnserver +<code> 
-cat 'user:password' >> /etc/turnserver/turnuserdb.conf +            url: "http://signalmaster.herokuapp.com", 
-systemctl enable turnserver.service +</code> 
-systemctl start turnserver.service+en 
 +<code> 
 +            url: "https://visio.firewall-services.com", 
 +            peerConnectionConfig:
 +                iceServers: [ 
 +                    {"url": "stun:visio.firewall-services.com:3478"}, 
 +                    {"url":"turn:visio.firewall-services.com", "username":"jointheroom", "credential":"secret"
 +                ] 
 +            },
 </code> </code>
  
  
 +<note tip>Vous pouvez bien sûre personnaliser le login **jointheroom** et son mot de passe associé **secret**. L'important étant qu'ils correspondent aux valeurs ajoutées dans le fichier /etc/turnserver/turnuserdb.conf</note>
  • tuto/linux_divers/visio_join_the_room.1392898930.txt.gz
  • Dernière modification: 20/02/2014 13:22
  • de dani