Upgrade jibri config
This commit is contained in:
parent
b87d5359f4
commit
f8b58802f9
|
@ -199,6 +199,7 @@ if [ "$JITSI_REPO" = "stable" ]; then
|
||||||
else
|
else
|
||||||
echo 'deb http://download.jitsi.org stable/' > /etc/apt/sources.list.d/jitsi-stable.list
|
echo 'deb http://download.jitsi.org stable/' > /etc/apt/sources.list.d/jitsi-stable.list
|
||||||
wget -qO - https://download.jitsi.org/jitsi-key.gpg.key | apt-key add -
|
wget -qO - https://download.jitsi.org/jitsi-key.gpg.key | apt-key add -
|
||||||
|
JITSI_REPO="stable"
|
||||||
fi
|
fi
|
||||||
#Default to LE SSL?
|
#Default to LE SSL?
|
||||||
while [[ $LE_SSL != yes && $LE_SSL != no ]]
|
while [[ $LE_SSL != yes && $LE_SSL != no ]]
|
||||||
|
@ -333,7 +334,6 @@ PROSODY_FILE=/etc/prosody/conf.d/$DOMAIN.cfg.lua
|
||||||
PROSODY_SYS=/etc/prosody/prosody.cfg.lua
|
PROSODY_SYS=/etc/prosody/prosody.cfg.lua
|
||||||
JICOFO_SIP=/etc/jitsi/jicofo/sip-communicator.properties
|
JICOFO_SIP=/etc/jitsi/jicofo/sip-communicator.properties
|
||||||
MEET_CONF=/etc/jitsi/meet/$DOMAIN-config.js
|
MEET_CONF=/etc/jitsi/meet/$DOMAIN-config.js
|
||||||
CONF_JSON=/etc/jitsi/jibri/config.json
|
|
||||||
JIBRI_CONF=/etc/jitsi/jibri/jibri.conf
|
JIBRI_CONF=/etc/jitsi/jibri/jibri.conf
|
||||||
DIR_RECORD=/var/jbrecord
|
DIR_RECORD=/var/jbrecord
|
||||||
REC_DIR=/home/jibri/finalize_recording.sh
|
REC_DIR=/home/jibri/finalize_recording.sh
|
||||||
|
@ -736,41 +736,76 @@ REC_DIR
|
||||||
chown jibri:jibri $REC_DIR
|
chown jibri:jibri $REC_DIR
|
||||||
chmod +x $REC_DIR
|
chmod +x $REC_DIR
|
||||||
|
|
||||||
## JSON Config
|
## New Jibri Config (2020)
|
||||||
cp $CONF_JSON ${CONF_JSON}.orig
|
mv $JIBRI_CONF ${JIBRI_CONF}-dpkg-file
|
||||||
cat << CONF_JSON > $CONF_JSON
|
cat << NEW_CONF > $JIBRI_CONF
|
||||||
{
|
// New XMPP environment config.
|
||||||
"recording_directory":"$DIR_RECORD",
|
jibri {
|
||||||
"finalize_recording_script_path": "$REC_DIR",
|
recording {
|
||||||
"xmpp_environments": [
|
recordings-directory = $DIR_RECORD
|
||||||
{
|
finalize-script = $REC_DIR
|
||||||
"name": "$JB_NAME",
|
}
|
||||||
"xmpp_server_hosts": [
|
api {
|
||||||
"$DOMAIN"
|
xmpp {
|
||||||
],
|
environments = [
|
||||||
"xmpp_domain": "$DOMAIN",
|
{
|
||||||
"control_login": {
|
// A user-friendly name for this environment
|
||||||
"domain": "auth.$DOMAIN",
|
name = "$JB_NAME"
|
||||||
"username": "jibri",
|
|
||||||
"password": "$JB_AUTH_PASS"
|
|
||||||
},
|
|
||||||
"control_muc": {
|
|
||||||
"domain": "internal.auth.$DOMAIN",
|
|
||||||
"room_name": "$JibriBrewery",
|
|
||||||
"nickname": "Live"
|
|
||||||
},
|
|
||||||
"call_login": {
|
|
||||||
"domain": "recorder.$DOMAIN",
|
|
||||||
"username": "recorder",
|
|
||||||
"password": "$JB_REC_PASS"
|
|
||||||
},
|
|
||||||
|
|
||||||
"room_jid_domain_string_to_strip_from_start": "conference.",
|
// A list of XMPP server hosts to which we'll connect
|
||||||
"usage_timeout": "0"
|
xmpp-server-hosts = [ "$DOMAIN" ]
|
||||||
|
|
||||||
|
// The base XMPP domain
|
||||||
|
xmpp-domain = "$DOMAIN"
|
||||||
|
|
||||||
|
// The MUC we'll join to announce our presence for
|
||||||
|
// recording and streaming services
|
||||||
|
control-muc {
|
||||||
|
domain = "internal.auth.$DOMAIN"
|
||||||
|
room-name = "$JibriBrewery"
|
||||||
|
nickname = "Live"
|
||||||
|
}
|
||||||
|
|
||||||
|
// The login information for the control MUC
|
||||||
|
control-login {
|
||||||
|
domain = "auth.$DOMAIN"
|
||||||
|
username = "jibri"
|
||||||
|
password = "$JB_AUTH_PASS"
|
||||||
|
}
|
||||||
|
|
||||||
|
// An (optional) MUC configuration where we'll
|
||||||
|
// join to announce SIP gateway services
|
||||||
|
// sip-control-muc {
|
||||||
|
// domain = "domain"
|
||||||
|
// room-name = "room-name"
|
||||||
|
// nickname = "nickname"
|
||||||
|
// }
|
||||||
|
|
||||||
|
// The login information the selenium web client will use
|
||||||
|
call-login {
|
||||||
|
domain = "recorder.$DOMAIN"
|
||||||
|
username = "recorder"
|
||||||
|
password = "$JB_REC_PASS"
|
||||||
|
}
|
||||||
|
|
||||||
|
// The value we'll strip from the room JID domain to derive
|
||||||
|
// the call URL
|
||||||
|
strip-from-room-domain = "conference."
|
||||||
|
|
||||||
|
// How long Jibri sessions will be allowed to last before
|
||||||
|
// they are stopped. A value of 0 allows them to go on
|
||||||
|
// indefinitely
|
||||||
|
usage-timeout = 0 hour
|
||||||
|
|
||||||
|
// Whether or not we'll automatically trust any cert on
|
||||||
|
// this XMPP domain
|
||||||
|
trust-all-xmpp-certs = true
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
}
|
||||||
}
|
}
|
||||||
CONF_JSON
|
NEW_CONF
|
||||||
|
|
||||||
#Setting varibales for add-jibri-node.sh
|
#Setting varibales for add-jibri-node.sh
|
||||||
sed -i "s|MAIN_SRV_DIST=.*|MAIN_SRV_DIST=\"$DIST\"|" add-jibri-node.sh
|
sed -i "s|MAIN_SRV_DIST=.*|MAIN_SRV_DIST=\"$DIST\"|" add-jibri-node.sh
|
||||||
|
|
Loading…
Reference in New Issue