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 15:08]
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 103: Ligne 125:
 proc-user turnserver proc-user turnserver
 proc-group turnserver proc-group turnserver
 +EOF
 +cat <<'EOF' >> /etc/turnserver/turnuserdb.conf
 +jointheroom:secret
 +EOF
 +</code>
 +
 +===== 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:
 +
 +  * Dans /opt/jointheroom/js/appObject.js ligne 14, changez
 +<code>
 +            url: "http://signalmaster.herokuapp.com",
 +</code>
 +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.1392905338.txt.gz
  • Dernière modification: 20/02/2014 15:08
  • de dani