[__jitsi_meet] Configure jicofo so metrics are more useful

By default the REST API provided by jicofo is less useful than desired.
This is a tad under-documented, so finding the right settings was tricky :-).

Sponsored by:   camilion.eu, eXO.cat
This commit is contained in:
evilham 2022-04-28 17:32:15 +02:00
parent 0cff414884
commit a63d9ec458
Signed by untrusted user: evilham
GPG key ID: AE3EE30D970886BF
2 changed files with 24 additions and 1 deletions

View file

@ -33,7 +33,7 @@ if grep -qE "^__file/etc/nginx" "${__messages_in}"; then
echo "service nginx reload" echo "service nginx reload"
fi fi
if grep -qE "^(__line/jitsi_jicofo_secured_domains|(__file|__link)/etc/prosody/conf.d/|__file/etc/jitsi/jicofo/jicofo.conf)" "${__messages_in}"; then if grep -qE "^(__line/jitsi_jicofo_secured_domains|(__file|__link)/etc/prosody/conf.d/|__file/etc/jitsi/(jicofo/jicofo.conf|videobridge/jvb.conf))" "${__messages_in}"; then
RESTART_SERVICES="YES" RESTART_SERVICES="YES"
fi fi

View file

@ -200,6 +200,29 @@ export JITSI_HOST
"${__type}/files/jicofo.conf.sh" | \ "${__type}/files/jicofo.conf.sh" | \
__file /etc/jitsi/jicofo/jicofo.conf --mode 0444 --source '-' __file /etc/jitsi/jicofo/jicofo.conf --mode 0444 --source '-'
# Enable the private colibri REST API end point for better stats
__file "/etc/jitsi/videobridge/jvb.conf" --mode 0444 --source '-' <<EOFJVB
videobridge {
http-servers {
public {
port = 9090
}
private {
port = 8080
}
}
websockets {
enabled = true
domain = "${JITSI_HOST}:443"
tls = true
}
apis {
rest {
enabled = true
}
}
}
EOFJVB
# These two should be changed on new release # These two should be changed on new release
EXPORTER_VERSION="1.2.0" EXPORTER_VERSION="1.2.0"