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

Prochaine révision
Révision précédente
tuto:linux_divers:visio_join_the_room [20/02/2014 11:19]
dani créée
tuto:linux_divers:visio_join_the_room [20/02/2014 15:52] (Version actuelle)
dani
Ligne 32: Ligne 32:
 <code bash> <code bash>
 useradd signalmaster useradd signalmaster
 +cat <<'EOF' > /etc/systemd/system/signalmaster.service
 +[Service]
 +ExecStart=/usr/bin/node /opt/signalmaster/server.js
 +Restart=always
 +StandardOutput=syslog
 +SyslogIdentifier=SignalMaster
 +User=signalmaster
 +Group=signalmaster
 +
 +[Install]
 +WantedBy=multi-user.target
 +EOF
 +systemctl daemon-reload
 +systemctl enable signalmaster
 +systemctl start signalmaster
 </code> </code>
 +
 +===== Installer Join the Room =====
 +
 +<code bash>
 +yum install httpd mod_ssl
 +</code>
 +
 +<code bash>
 +cd /opt
 +git clone https://github.com/yatendra/jointheroom.git
 +</code>
 +
 +<code bash>
 +cat<<'EOF' > /etc/httpd/conf.d/jointheroom.conf
 +<Directory /opt/jointheroom>
 +    Options None
 +    DirectoryIndex index.shtml index.htm index.html
 +    Require all granted
 +</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
 +systemctl enable httpd.service
 +systemctl start httpd.service
 +</code>
 +
 +===== Installer le serveur STUN/TURN =====
 +
 +Allez sur http://turnserver.open-sys.org/downloads/ et récupérer la dernière version pré-compilé pour notre Fedoa, à ce jour, c'est la version 3.2.2.7
 +
 +<code bash>
 +yum -y install wget tar
 +wget wget http://turnserver.open-sys.org/downloads/v3.2.2.7/turnserver-3.2.2.7-Fedora20-x86_64.tar.gz
 +tar xvzf turnserver-3.2.2.7-Fedora20-x86_64.tar.gz
 +cd turnserver-3.2.2.7/
 +yum localinstall ./*.rpm
 +</code>
 +
 +  * Configurez le démon:
 +<code bash>
 +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>
 +
 +===== 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>
 +
 +
 +<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.1392891547.txt.gz
  • Dernière modification: 20/02/2014 11:19
  • de dani