meet_jitsi_un_container_lxc
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| meet_jitsi_un_container_lxc [2022/05/25 00:53] – [Dans le container Jitsi] n1c0 | meet_jitsi_un_container_lxc [2023/12/01 00:53] (Version actuelle) – [Ressources config jitsi] Labomedia | ||
|---|---|---|---|
| Ligne 7: | Ligne 7: | ||
| * [[https:// | * [[https:// | ||
| * [[https:// | * [[https:// | ||
| + | * [[https:// | ||
| Ligne 30: | Ligne 31: | ||
| lxc-attach meet | lxc-attach meet | ||
| | | ||
| - | ===== Génération | + | ===== Création |
| On utilise le virtual host par défaut d' | On utilise le virtual host par défaut d' | ||
| Ligne 51: | Ligne 52: | ||
| Dans le container, ajouter dans **/ | Dans le container, ajouter dans **/ | ||
| - | 127.0.1.1 | + | 127.0.1.1 |
| 10.0.3.211 | 10.0.3.211 | ||
| | | ||
| Ligne 152: | Ligne 153: | ||
| </ | </ | ||
| - | ===== Réglages Firewall et réseau pour container LXC ===== | + | ===== Réglages Firewall et Réseau |
| ==== Dans le container ==== | ==== Dans le container ==== | ||
| Ligne 166: | Ligne 167: | ||
| sudo ufw enable | sudo ufw enable | ||
| </ | </ | ||
| + | |||
| + | Configurer le videobridge en modifiant le fichier **/ | ||
| + | |||
| + | <code bash> | ||
| + | org.ice4j.ice.harvest.DISABLE_AWS_HARVESTER=true | ||
| + | # On ne configure pas de serveur STUN pour le moment | ||
| + | # | ||
| + | # Apparemment c'est bien de mettre cette instruction aussi : | ||
| + | org.jitsi.impl.neomedia.transform.srtp.SRTPCryptoContext.checkReplay=false | ||
| + | # Pour faire fonctionner dans un container LXC, on précise l'IP locale et publique | ||
| + | org.ice4j.ice.harvest.NAT_HARVESTER_LOCAL_ADDRESS=10.0.3.211 | ||
| + | # Remplacer XXX.XXX.XXX.XXX par votre IP publique de l' | ||
| + | org.ice4j.ice.harvest.NAT_HARVESTER_PUBLIC_ADDRESS=XXX.XXX.XXX.XXX | ||
| + | org.jitsi.videobridge.ENABLE_STATISTICS=true | ||
| + | org.jitsi.videobridge.STATISTICS_TRANSPORT=muc | ||
| + | org.jitsi.videobridge.xmpp.user.shard.HOSTNAME=localhost | ||
| + | </ | ||
| + | |||
| + | Puis redémarrer videobridge : | ||
| + | |||
| + | | ||
| + | |||
| + | [[https:// | ||
| ==== Sur l'hote ==== | ==== Sur l'hote ==== | ||
| Ligne 212: | Ligne 236: | ||
| - | ==== Dans le container Jitsi ==== | ||
| - | |||
| - | Configurer le videobridge en modifiant le fichier **/ | ||
| - | <code bash> | ||
| - | org.ice4j.ice.harvest.DISABLE_AWS_HARVESTER=true | ||
| - | # On ne configure pas de serveur STUN pour le moment | ||
| - | # | ||
| - | # Apparemment c'est bien de mettre cette instruction aussi : | ||
| - | org.jitsi.impl.neomedia.transform.srtp.SRTPCryptoContext.checkReplay=false | ||
| - | # Pour faire fonctionner dans un container LXC, on précise l'IP locale et publique | ||
| - | org.ice4j.ice.harvest.NAT_HARVESTER_LOCAL_ADDRESS=10.0.3.211 | ||
| - | # Remplacer XXX.XXX.XXX.XXX par votre IP publique de l' | ||
| - | org.ice4j.ice.harvest.NAT_HARVESTER_PUBLIC_ADDRESS=XXX.XXX.XXX.XXX | ||
| - | org.jitsi.videobridge.ENABLE_STATISTICS=true | ||
| - | org.jitsi.videobridge.STATISTICS_TRANSPORT=muc | ||
| - | org.jitsi.videobridge.xmpp.user.shard.HOSTNAME=localhost | ||
| - | </ | ||
| - | |||
| - | Puis redémarrer videobridge : | ||
| - | |||
| - | | ||
| - | |||
| - | [[https:// | ||
| ==== Trouble shooting ==== | ==== Trouble shooting ==== | ||
| Redémarrer lxc-net service sur l'hote | Redémarrer lxc-net service sur l'hote | ||
| Ligne 245: | Ligne 246: | ||
| ===== Configurations complémentaires ===== | ===== Configurations complémentaires ===== | ||
| - | ==== Ressources config jitsi ==== | ||
| - | * https:// | ||
| ==== Personnaliser l' | ==== Personnaliser l' | ||
| Ligne 253: | Ligne 252: | ||
| Notamment | Notamment | ||
| nano / | nano / | ||
| - | et une redirection pour le logo dans le vhost nginx port 80 | + | et une redirection pour le logo et interface |
| < | < | ||
| - | | + | location = /body.html { |
| - | alias / | + | alias / |
| + | } | ||
| + | location = / | ||
| + | alias / | ||
| + | } | ||
| + | | ||
| + | alias / | ||
| } | } | ||
| </ | </ | ||
| - | ==== Réglages serveur | + | ==== Réglages serveur |
| - | | + | |
| - | ligne 444 | + | On va utiliser ici le serveur STUN proposé officiellement par Meet Jitsi : meet-jit-si-turnrelay.jitsi.net |
| - | { urls: ' | + | |
| - | // { urls: ' | + | Dans le container, dans le fichier **/ |
| + | |||
| + | | ||
| + | |||
| + | Puis dans le fichier **/ | ||
| + | |||
| + | <code bash> | ||
| + | p2p: { | ||
| + | // Enables peer to peer mode. When enabled the system will try to | ||
| + | // establish a direct connection when there are exactly 2 participants | ||
| + | // in the room. If that succeeds the conference will stop sending data | ||
| + | // through the JVB and use the peer to peer connection instead. When a | ||
| + | // 3rd participant joins the conference will be moved back to the JVB | ||
| + | // connection. | ||
| + | enabled: true, | ||
| + | |||
| + | | ||
| + | stunServers: | ||
| + | { urls: ' | ||
| + | ] | ||
| + | </ | ||
| + | |||
| + | Enfin, on redémarre le videobridge et jicofo : | ||
| + | |||
| + | systemctl restart jitsi-videobridge2.service && systemctl restart jicofo.service | ||
| + | |||
| + | Pour voir si le serveur STUN est utilisé, toujours dans le container, executer la commande : | ||
| + | |||
| + | tcpdump host meet-jit-si-turnrelay.jitsi.net | ||
| - | systemctl restart jitsi-videobridge2.service | ||
| - | systemctl restart jicofo.service | ||
| ==== Désactiver ipv6 ?! ==== | ==== Désactiver ipv6 ?! ==== | ||
meet_jitsi_un_container_lxc.1653439999.txt.gz · Dernière modification : de n1c0
