From cef60898b5db0e314a435121606b04b1ad6ffbdd Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Sun, 22 Mar 2020 18:01:54 +0100 Subject: Rework jitsi-xmpp to support cert gen --- docker/jitsi/jitsi-xmpp/xmpp_run | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 docker/jitsi/jitsi-xmpp/xmpp_run (limited to 'docker/jitsi/jitsi-xmpp/xmpp_run') diff --git a/docker/jitsi/jitsi-xmpp/xmpp_run b/docker/jitsi/jitsi-xmpp/xmpp_run new file mode 100755 index 0000000..ca2b7cf --- /dev/null +++ b/docker/jitsi/jitsi-xmpp/xmpp_run @@ -0,0 +1,18 @@ +#!/bin/bash + +/usr/local/bin/xmpp_conf +cp ${JITSI_CERTS_FOLDER}/* /var/lib/prosody/ + +mkdir -p /usr/local/share/ca-certificates/ +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} + +mkdir /run/prosody +touch /run/prosody/prosody.pid +chown -R prosody:prosody /run/prosody + +cd /var/lib/prosody +su - prosody -s /bin/bash -c prosody -- cgit v1.2.3