From a23e08ce20887efb4e158a02ffee1f775a0db89f Mon Sep 17 00:00:00 2001 From: Quentin Date: Sat, 12 Sep 2020 20:17:07 +0200 Subject: Refactor 2 --- app/build/jitsi-xmpp/Dockerfile | 11 +++++++ app/build/jitsi-xmpp/external_components.cfg.lua | 2 ++ app/build/jitsi-xmpp/xmpp_conf | 42 ++++++++++++++++++++++++ app/build/jitsi-xmpp/xmpp_gen | 9 +++++ app/build/jitsi-xmpp/xmpp_run | 19 +++++++++++ 5 files changed, 83 insertions(+) create mode 100644 app/build/jitsi-xmpp/Dockerfile create mode 100644 app/build/jitsi-xmpp/external_components.cfg.lua create mode 100755 app/build/jitsi-xmpp/xmpp_conf create mode 100755 app/build/jitsi-xmpp/xmpp_gen create mode 100755 app/build/jitsi-xmpp/xmpp_run (limited to 'app/build/jitsi-xmpp') diff --git a/app/build/jitsi-xmpp/Dockerfile b/app/build/jitsi-xmpp/Dockerfile new file mode 100644 index 0000000..3733d49 --- /dev/null +++ b/app/build/jitsi-xmpp/Dockerfile @@ -0,0 +1,11 @@ +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 xmpp_conf /usr/local/bin/xmpp_conf +COPY xmpp_gen /usr/local/bin/xmpp_gen +COPY xmpp_run /usr/local/bin/xmpp_run + +CMD ["/usr/local/bin/xmpp_run"] diff --git a/app/build/jitsi-xmpp/external_components.cfg.lua b/app/build/jitsi-xmpp/external_components.cfg.lua new file mode 100644 index 0000000..beaaa87 --- /dev/null +++ b/app/build/jitsi-xmpp/external_components.cfg.lua @@ -0,0 +1,2 @@ +component_ports = { 5347 } +component_interface = "0.0.0.0" diff --git a/app/build/jitsi-xmpp/xmpp_conf b/app/build/jitsi-xmpp/xmpp_conf new file mode 100755 index 0000000..2a9278e --- /dev/null +++ b/app/build/jitsi-xmpp/xmpp_conf @@ -0,0 +1,42 @@ +#!/bin/bash + +cat >> /etc/hosts < /etc/prosody/conf.avail/jitsi.deuxfleurs.fr.cfg.lua < Date: Sun, 13 Sep 2020 11:46:14 +0200 Subject: Finally it seems to work --- app/build/jitsi-xmpp/xmpp_conf | 39 ++++++++++++++++++++++----------------- app/build/jitsi-xmpp/xmpp_run | 1 + 2 files changed, 23 insertions(+), 17 deletions(-) (limited to 'app/build/jitsi-xmpp') diff --git a/app/build/jitsi-xmpp/xmpp_conf b/app/build/jitsi-xmpp/xmpp_conf index 2a9278e..5990d07 100755 --- a/app/build/jitsi-xmpp/xmpp_conf +++ b/app/build/jitsi-xmpp/xmpp_conf @@ -8,31 +8,36 @@ EOF mkdir -p /etc/prosody/conf.{d,avail}/ cat > /etc/prosody/conf.avail/jitsi.deuxfleurs.fr.cfg.lua <