aboutsummaryrefslogtreecommitdiff
path: root/docker/jitsi/jitsi-xmpp
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2020-03-22 15:09:20 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2020-03-22 15:09:20 +0100
commit0a1027a1ac8390422033b8eeff1f7412b58d961d (patch)
tree0f6d2c94508d03f5f5a358362c833e5e6dc8c5dd /docker/jitsi/jitsi-xmpp
parentd2c743b7420b897116755d21fcd67630612a2b81 (diff)
downloadinfrastructure-0a1027a1ac8390422033b8eeff1f7412b58d961d.tar.gz
infrastructure-0a1027a1ac8390422033b8eeff1f7412b58d961d.zip
Configured jitsi-xmpp
Diffstat (limited to 'docker/jitsi/jitsi-xmpp')
-rw-r--r--docker/jitsi/jitsi-xmpp/Dockerfile5
-rwxr-xr-xdocker/jitsi/jitsi-xmpp/entrypoint.sh10
-rw-r--r--docker/jitsi/jitsi-xmpp/external_components.cfg.lua2
3 files changed, 14 insertions, 3 deletions
diff --git a/docker/jitsi/jitsi-xmpp/Dockerfile b/docker/jitsi/jitsi-xmpp/Dockerfile
index 03bb8f3..4d71a13 100644
--- a/docker/jitsi/jitsi-xmpp/Dockerfile
+++ b/docker/jitsi/jitsi-xmpp/Dockerfile
@@ -3,4 +3,7 @@ FROM debian:buster
RUN apt-get update && \
apt-get install -y prosody
-
+COPY external_components.cfg.lua /etc/prosody/conf.d/external_components.cfg.lua
+COPY entrypoint.sh /usr/local/bin/entrypoint
+ENTRYPOINT ["/usr/local/bin/entrypoint"]
+CMD ["/usr/bin/prosody"]
diff --git a/docker/jitsi/jitsi-xmpp/entrypoint.sh b/docker/jitsi/jitsi-xmpp/entrypoint.sh
index 017a756..e6ab4e5 100755
--- a/docker/jitsi/jitsi-xmpp/entrypoint.sh
+++ b/docker/jitsi/jitsi-xmpp/entrypoint.sh
@@ -37,10 +37,16 @@ ln -sf \
prosodyctl cert generate jitsi.deuxfleurs.fr
prosodyctl cert generate auth.jitsi.deuxfleurs.fr
+mkdir -p /usr/local/share/ca-certificates/
ln -sf \
- /var/lib/prosody/auth.jitsi.deuxfleurs.fr.crt
+ /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 "$@"
+mkdir /run/prosody
+touch /run/prosody/prosody.pid
+chown -R prosody:prosody /run/prosody
+
+cd /var/lib/prosody
+su - prosody -s /bin/bash -c "$@"
diff --git a/docker/jitsi/jitsi-xmpp/external_components.cfg.lua b/docker/jitsi/jitsi-xmpp/external_components.cfg.lua
new file mode 100644
index 0000000..beaaa87
--- /dev/null
+++ b/docker/jitsi/jitsi-xmpp/external_components.cfg.lua
@@ -0,0 +1,2 @@
+component_ports = { 5347 }
+component_interface = "0.0.0.0"