diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2020-03-22 14:32:10 +0100 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2020-03-22 14:32:10 +0100 |
commit | d2c743b7420b897116755d21fcd67630612a2b81 (patch) | |
tree | 2db4ddbf3362d71836b9ac788de322515190a8b0 /docker/jitsi/jitsi-xmpp/entrypoint.sh | |
parent | 3b92e1979d84e7202f82427a6e16585ffebb31a1 (diff) | |
download | infrastructure-d2c743b7420b897116755d21fcd67630612a2b81.tar.gz infrastructure-d2c743b7420b897116755d21fcd67630612a2b81.zip |
Move to a more manual jitsi installation
Diffstat (limited to 'docker/jitsi/jitsi-xmpp/entrypoint.sh')
-rwxr-xr-x | docker/jitsi/jitsi-xmpp/entrypoint.sh | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/docker/jitsi/jitsi-xmpp/entrypoint.sh b/docker/jitsi/jitsi-xmpp/entrypoint.sh new file mode 100755 index 0000000..017a756 --- /dev/null +++ b/docker/jitsi/jitsi-xmpp/entrypoint.sh @@ -0,0 +1,46 @@ +#!/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 + +prosodyctl cert generate jitsi.deuxfleurs.fr +prosodyctl cert generate auth.jitsi.deuxfleurs.fr + +ln -sf \ + /var/lib/prosody/auth.jitsi.deuxfleurs.fr.crt + /usr/local/share/ca-certificates/auth.jitsi.deuxfleurs.fr.crt + +prosodyctl register focus auth.jitsi.deuxfleurs.fr ${JITSI_SECRET_JICOFO_USER} + +exec "$@" |