jitsi: Allow for multiple installation types

JITSI_SCALE unset -- "normal" core installation
JITSI_SCALE=client -- Omit the JVB component, the Jitsi Scale servers
take over
JITSI_SCALE=server -- Omit anything but the JVB component to install a
Jitsi Scale server
This commit is contained in:
Bernhard "bero" Rosenkränzer (Boggins) 2024-11-01 18:11:40 +01:00
parent 4043de050c
commit af8a7fe581
2 changed files with 17 additions and 1 deletions

View File

@ -5,7 +5,11 @@ function generatePassword() {
}
JICOFO_AUTH_PASSWORD=$(generatePassword)
if [ -n "$JITSI_SCALE" ]; then
JVB_AUTH_PASSWORD="J17515cAl3-jvb"
else
JVB_AUTH_PASSWORD=$(generatePassword)
fi
JIGASI_XMPP_PASSWORD=$(generatePassword)
JIBRI_RECORDER_PASSWORD=$(generatePassword)
JIBRI_XMPP_PASSWORD=$(generatePassword)

View File

@ -25,6 +25,10 @@ cat > /federated/apps/jitsi/docker-compose.yml <<EOF
version: '3.7'
services:
EOF
if [ "$JITSI_SCALE" != "server" ]; then
cat >> /federated/apps/jitsi/docker-compose.yml <<EOF
# Frontend
web:
image: jitsi/web:\${JITSI_IMAGE_VERSION:-stable-9779}
@ -328,6 +332,10 @@ services:
core:
ipv4_address: 192.168.0.27
EOF
fi
if [ "$JITSI_SCALE" != "client" ]; then
cat >> /federated/apps/jitsi/docker-compose.yml <<EOF
# Video bridge
jvb:
image: jitsi/jvb:\${JITSI_IMAGE_VERSION:-stable-9779}
@ -372,6 +380,10 @@ services:
networks:
core:
ipv4_address: 192.168.0.28
EOF
fi
cat >> /federated/apps/jitsi/docker-compose.yml <<EOF
networks:
core: