aboutsummaryrefslogtreecommitdiff
path: root/docker/jitsi/jitsi-xmpp
diff options
context:
space:
mode:
Diffstat (limited to 'docker/jitsi/jitsi-xmpp')
-rw-r--r--docker/jitsi/jitsi-xmpp/Dockerfile6
-rwxr-xr-xdocker/jitsi/jitsi-xmpp/entrypoint.sh46
2 files changed, 52 insertions, 0 deletions
diff --git a/docker/jitsi/jitsi-xmpp/Dockerfile b/docker/jitsi/jitsi-xmpp/Dockerfile
new file mode 100644
index 0000000..03bb8f3
--- /dev/null
+++ b/docker/jitsi/jitsi-xmpp/Dockerfile
@@ -0,0 +1,6 @@
+FROM debian:buster
+
+RUN apt-get update && \
+ apt-get install -y prosody
+
+
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 "$@"