diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2020-03-22 18:01:54 +0100 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2020-03-22 18:01:54 +0100 |
commit | cef60898b5db0e314a435121606b04b1ad6ffbdd (patch) | |
tree | 12d34ff821c0aa473af7fdf4a3ec6e46c3e702e8 /docker/jitsi/jitsi-xmpp/xmpp_conf | |
parent | e24522d8285878240ee0d873616bc177313aa7ba (diff) | |
download | infrastructure-cef60898b5db0e314a435121606b04b1ad6ffbdd.tar.gz infrastructure-cef60898b5db0e314a435121606b04b1ad6ffbdd.zip |
Rework jitsi-xmpp to support cert gen
Diffstat (limited to 'docker/jitsi/jitsi-xmpp/xmpp_conf')
-rwxr-xr-x | docker/jitsi/jitsi-xmpp/xmpp_conf | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/docker/jitsi/jitsi-xmpp/xmpp_conf b/docker/jitsi/jitsi-xmpp/xmpp_conf new file mode 100755 index 0000000..c7534ba --- /dev/null +++ b/docker/jitsi/jitsi-xmpp/xmpp_conf @@ -0,0 +1,37 @@ +#!/bin/bash + +mkdir -p /etc/prosody/conf.{d,avail}/ +cat > /etc/prosody/conf.avail/jitsi.deuxfleurs.fr.cfg.lua <<EOF +VirtualHost "jitsi.deuxfleurs.fr" + authentication = "anonymous" + ssl = { + key = "/var/lib/prosody/jitsi.deuxfleurs.fr.key"; + certificate = "/var/lib/prosody/jitsi.deuxfleurs.fr.crt"; + } + modules_enabled = { + "bosh"; + "pubsub"; + } + c2s_require_encryption = false + +VirtualHost "auth.jitsi.deuxfleurs.fr" + ssl = { + key = "/var/lib/prosody/auth.jitsi.deuxfleurs.fr.key"; + certificate = "/var/lib/prosody/auth.jitsi.deuxfleurs.fr.crt"; + } + authentication = "internal_plain" + +admins = { "focus@auth.jitsi.deuxfleurs.fr" } + +Component "conference.jitsi.deuxfleurs.fr" "muc" +Component "jitsi-videobridge.jitsi.deuxfleurs.fr" + component_secret = "${JITSI_SECRET_VIDEOBRIDGE}" +Component "focus.jitsi.deuxfleurs.fr" + component_secret = "${JITSI_SECRET_JICOFO_COMPONENT}" +EOF + +ln -sf \ + /etc/prosody/conf.avail/jitsi.deuxfleurs.fr.cfg.lua \ + /etc/prosody/conf.d/jitsi.deuxfleurs.fr.cfg.lua + + |