aboutsummaryrefslogtreecommitdiff
path: root/docker/jitsi/jitsi-xmpp/xmpp_conf
blob: c7534ba9ca7d7e7a6d350421d87e6dcbf30c9141 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/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