aboutsummaryrefslogtreecommitdiff
path: root/docker/jitsi/jitsi-xmpp/xmpp_gen
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2020-03-22 18:01:54 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2020-03-22 18:01:54 +0100
commitcef60898b5db0e314a435121606b04b1ad6ffbdd (patch)
tree12d34ff821c0aa473af7fdf4a3ec6e46c3e702e8 /docker/jitsi/jitsi-xmpp/xmpp_gen
parente24522d8285878240ee0d873616bc177313aa7ba (diff)
downloadinfrastructure-cef60898b5db0e314a435121606b04b1ad6ffbdd.tar.gz
infrastructure-cef60898b5db0e314a435121606b04b1ad6ffbdd.zip
Rework jitsi-xmpp to support cert gen
Diffstat (limited to 'docker/jitsi/jitsi-xmpp/xmpp_gen')
-rwxr-xr-xdocker/jitsi/jitsi-xmpp/xmpp_gen9
1 files changed, 9 insertions, 0 deletions
diff --git a/docker/jitsi/jitsi-xmpp/xmpp_gen b/docker/jitsi/jitsi-xmpp/xmpp_gen
new file mode 100755
index 0000000..3a2e04a
--- /dev/null
+++ b/docker/jitsi/jitsi-xmpp/xmpp_gen
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+/usr/local/bin/xmpp_conf
+
+prosodyctl cert generate jitsi.deuxfleurs.fr
+prosodyctl cert generate auth.jitsi.deuxfleurs.fr
+
+cp /var/lib/prosody/*.crt ${JITSI_CERTS_FOLDER}
+cp /var/lib/prosody/*.key ${JITSI_CERTS_FOLDER}