forked from switnet/quick-jibri-installer
Compare commits
19 Commits
add_final_
...
master
Author | SHA1 | Date |
---|---|---|
Luis Guzmán | 8eeb286def | |
Luis Guzmán | 61698d06b4 | |
Luis Guzmán | 6b1e50f7b5 | |
Luis Guzmán | 0a7fd8dfd9 | |
Luis Guzmán | b9b5d2e326 | |
Luis Guzmán | 11c261959f | |
Luis Guzmán | 33f1967c6d | |
Luis Guzmán | 22c1b881ae | |
Luis Guzmán | 40b84218fc | |
Luis Guzmán | b8e1ee292f | |
Luis Guzmán | 8ff04e8850 | |
Luis Guzmán | 9753cf1bcb | |
Luis Guzmán | 647bce26e6 | |
Luis Guzmán | 1638096ba7 | |
Luis Guzmán | 998ca69ddf | |
Luis Guzmán | 9a5364b2c6 | |
Luis Guzmán | a290c636ba | |
Luis Guzmán | 67442f6133 | |
Luis Guzmán | 2a58bdd8a6 |
11
README.md
11
README.md
|
@ -56,9 +56,8 @@ Check more details on our wiki.
|
||||||
### Jibri Recodings Access via Nextcloud
|
### Jibri Recodings Access via Nextcloud
|
||||||
* Valid domain with DNS record for Nextcloud SSL.
|
* Valid domain with DNS record for Nextcloud SSL.
|
||||||
|
|
||||||
### Jigasi Transcript (stalled)
|
### Jigasi Transcript
|
||||||
* SIP account
|
* Enough disk space to run Vosk backend via docker container.
|
||||||
* Google Cloud Account with Billing setup.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -79,7 +78,7 @@ Feel free to use our `test-jibri-env.sh` tool to find some details on your curre
|
||||||
* Etherpad via docker install
|
* Etherpad via docker install
|
||||||
* Authentication
|
* Authentication
|
||||||
1. Local
|
1. Local
|
||||||
2. JWT
|
2. JWT ([#87](https://forge.switnet.net/switnet/quick-jibri-installer/issues/87))
|
||||||
3. None
|
3. None
|
||||||
* Lobby Rooms
|
* Lobby Rooms
|
||||||
* Conference Duration
|
* Conference Duration
|
||||||
|
@ -90,7 +89,7 @@ Feel free to use our `test-jibri-env.sh` tool to find some details on your curre
|
||||||
* Enabled Jitsi Electron app detection server side.
|
* Enabled Jitsi Electron app detection server side.
|
||||||
* Standalone SSL Certbot/LE implementation
|
* Standalone SSL Certbot/LE implementation
|
||||||
* Improved recurring updater
|
* Improved recurring updater
|
||||||
* Jigasi Transcript - Speech to Text powered by Google API (stalled)
|
* Jigasi Transcript - vía Vosk speech recognition toolkit.
|
||||||
|
|
||||||
## Tools
|
## Tools
|
||||||
* Jibri Environment Tester
|
* Jibri Environment Tester
|
||||||
|
@ -119,4 +118,4 @@ Feel free to use our `test-jibri-env.sh` tool to find some details on your curre
|
||||||
|
|
||||||
Please note: This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY.
|
Please note: This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY.
|
||||||
|
|
||||||
SwITNet Ltd © - 2023, https://switnet.net/
|
SwITNet Ltd © - 2024, https://switnet.net/
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Jibri Node Aggregator
|
# Jibri Node Aggregator
|
||||||
# SwITNet Ltd © - 2023, https://switnet.net/
|
# SwITNet Ltd © - 2024, https://switnet.net/
|
||||||
# GPLv3 or later.
|
# GPLv3 or later.
|
||||||
|
|
||||||
### 0_LAST EDITION TIME STAMP ###
|
### 0_LAST EDITION TIME STAMP ###
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# JVB2 Node Aggregator
|
# JVB2 Node Aggregator
|
||||||
# SwITNet Ltd © - 2023, https://switnet.net/
|
# SwITNet Ltd © - 2024, https://switnet.net/
|
||||||
# GPLv3 or later.
|
# GPLv3 or later.
|
||||||
|
|
||||||
### 0_LAST EDITION TIME STAMP ###
|
### 0_LAST EDITION TIME STAMP ###
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Etherpad Installer for Jitsi Meet
|
# Etherpad Installer for Jitsi Meet
|
||||||
# SwITNet Ltd © - 2023, https://switnet.net/
|
# SwITNet Ltd © - 2024, https://switnet.net/
|
||||||
#
|
#
|
||||||
# GPLv3 or later.
|
# GPLv3 or later.
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ echo '
|
||||||
########################################################################
|
########################################################################
|
||||||
by Software, IT & Networks Ltd
|
by Software, IT & Networks Ltd
|
||||||
'
|
'
|
||||||
|
FORGE_REPO="https://forge.switnet.net/switnet/quick-jibri-installer"
|
||||||
check_apt_policy() {
|
check_apt_policy() {
|
||||||
apt-cache policy 2>/dev/null| awk "/$1/{print \$3}" | awk -F '/' 'NR==1{print$2}'
|
apt-cache policy 2>/dev/null| awk "/$1/{print \$3}" | awk -F '/' 'NR==1{print$2}'
|
||||||
}
|
}
|
||||||
|
@ -42,6 +42,16 @@ if [ "$(dpkg-query -W -f='${Status}' "$1" 2>/dev/null | grep -c "ok installed")"
|
||||||
apt-get -yq2 install "$1"
|
apt-get -yq2 install "$1"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
# Test for matches
|
||||||
|
test_match() {
|
||||||
|
if grep -q "$1" "$2" ; then
|
||||||
|
echo "$(basename "$2") - OK..."
|
||||||
|
else
|
||||||
|
echo "$(basename "$2"), FAIL..."
|
||||||
|
echo "Please report this to $FORGE_REPO"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
}
|
||||||
DOMAIN="$(find /etc/prosody/conf.d/ -name \*.lua|awk -F'.cfg' '!/localhost/{print $1}'|xargs basename)"
|
DOMAIN="$(find /etc/prosody/conf.d/ -name \*.lua|awk -F'.cfg' '!/localhost/{print $1}'|xargs basename)"
|
||||||
MEET_CONF="/etc/jitsi/meet/$DOMAIN-config.js"
|
MEET_CONF="/etc/jitsi/meet/$DOMAIN-config.js"
|
||||||
WS_CONF="/etc/nginx/sites-available/$DOMAIN.conf"
|
WS_CONF="/etc/nginx/sites-available/$DOMAIN.conf"
|
||||||
|
@ -50,12 +60,14 @@ ETHERPAD_DB_USER="dockerpad"
|
||||||
ETHERPAD_DB_NAME="etherpad"
|
ETHERPAD_DB_NAME="etherpad"
|
||||||
ETHERPAD_DB_PASS="$(tr -dc "a-zA-Z0-9#*=" < /dev/urandom | fold -w 10 | head -n1)"
|
ETHERPAD_DB_PASS="$(tr -dc "a-zA-Z0-9#*=" < /dev/urandom | fold -w 10 | head -n1)"
|
||||||
DOCKER_CE_REPO="$(check_apt_policy docker)"
|
DOCKER_CE_REPO="$(check_apt_policy docker)"
|
||||||
|
WS_CONF_MATCH1="# ensure all static content can always be found first"
|
||||||
|
|
||||||
echo "Add Docker repo"
|
echo "Add Docker repo"
|
||||||
if [ "$DOCKER_CE_REPO" = "stable" ]; then
|
if [ "$DOCKER_CE_REPO" = "stable" ]; then
|
||||||
echo "Docker repository already installed"
|
echo "Docker repository already installed"
|
||||||
else
|
else
|
||||||
echo "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" > /etc/apt/sources.list.d/docker-ce.list
|
echo "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" > \
|
||||||
|
/etc/apt/sources.list.d/docker-ce.list
|
||||||
wget -qO - https://download.docker.com/linux/ubuntu/gpg | \
|
wget -qO - https://download.docker.com/linux/ubuntu/gpg | \
|
||||||
gpg --dearmor | tee /etc/apt/trusted.gpg.d/docker-gpg-key.gpg >/dev/null
|
gpg --dearmor | tee /etc/apt/trusted.gpg.d/docker-gpg-key.gpg >/dev/null
|
||||||
apt -q2 update
|
apt -q2 update
|
||||||
|
@ -63,6 +75,9 @@ fi
|
||||||
|
|
||||||
read -p "Set your etherpad docker admin password: " -r ETHERPAD_ADMIN_PASS
|
read -p "Set your etherpad docker admin password: " -r ETHERPAD_ADMIN_PASS
|
||||||
|
|
||||||
|
# Make sure we can rely on the match strings.
|
||||||
|
printf "> Testing match strings on config files.\n"
|
||||||
|
test_match "$WS_MATCH1" "$WS_CONF"
|
||||||
|
|
||||||
# Install required packages
|
# Install required packages
|
||||||
install_ifnot docker-ce
|
install_ifnot docker-ce
|
||||||
|
@ -105,14 +120,18 @@ if [ "$(grep -c etherpad "$WS_CONF")" != 0 ]; then
|
||||||
echo "> Webserver seems configured, skipping..."
|
echo "> Webserver seems configured, skipping..."
|
||||||
elif [ -f "$WS_CONF" ]; then
|
elif [ -f "$WS_CONF" ]; then
|
||||||
echo "> Setting up webserver configuration file..."
|
echo "> Setting up webserver configuration file..."
|
||||||
sed -i "/# ensure all static content can always be found first/i \ \ \ \ #Etherpad block" "$WS_CONF"
|
sed -i "/$WS_CONF_MATCH1/i \ \ \ \ #Etherpad block" "$WS_CONF"
|
||||||
sed -i "/# ensure all static content can always be found first/i \ \ \ \ location \^\~\ \/etherpad\/ {" "$WS_CONF"
|
sed -i "/$WS_CONF_MATCH1/i \ \ \ \ location \^\~\ \/etherpad\/ {" "$WS_CONF"
|
||||||
sed -i "/# ensure all static content can always be found first/i \ \ \ \ \ \ \ \ proxy_pass http:\/\/localhost:9001\/;" "$WS_CONF"
|
sed -i "/$WS_CONF_MATCH1/i \ \ \ \ \ \ \ \ proxy_http_version 1.1;" "$WS_CONF"
|
||||||
sed -i "/# ensure all static content can always be found first/i \ \ \ \ \ \ \ \ proxy_set_header X-Forwarded-For \$remote_addr;" "$WS_CONF"
|
sed -i "/$WS_CONF_MATCH1/i \ \ \ \ \ \ \ \ proxy_set_header Upgrade \$http_upgrade;" "$WS_CONF"
|
||||||
sed -i "/# ensure all static content can always be found first/i \ \ \ \ \ \ \ \ proxy_buffering off;" "$WS_CONF"
|
sed -i "/$WS_CONF_MATCH1/i \ \ \ \ \ \ \ \ proxy_set_header Connection \$connection_upgrade;" "$WS_CONF"
|
||||||
sed -i "/# ensure all static content can always be found first/i \ \ \ \ \ \ \ \ proxy_set_header Host \$host;" "$WS_CONF"
|
sed -i "/$WS_CONF_MATCH1/i \ \ \ \ \ \ \ \ proxy_set_header X-Forwarded-For \$remote_addr;" "$WS_CONF"
|
||||||
sed -i "/# ensure all static content can always be found first/i \ \ \ \ }" "$WS_CONF"
|
sed -i "/$WS_CONF_MATCH1/i \ \ \ \ \ \ \ \ proxy_buffering off;" "$WS_CONF"
|
||||||
sed -i "/# ensure all static content can always be found first/i \\\n" "$WS_CONF"
|
sed -i "/$WS_CONF_MATCH1/i \ \ \ \ \ \ \ \ proxy_redirect off;" "$WS_CONF"
|
||||||
|
sed -i "/$WS_CONF_MATCH1/i \ \ \ \ \ \ \ \ proxy_set_header Host \$host;" "$WS_CONF"
|
||||||
|
sed -i "/$WS_CONF_MATCH1/i \ \ \ \ \ \ \ \ proxy_pass http:\/\/localhost:9001\/;" "$WS_CONF"
|
||||||
|
sed -i "/$WS_CONF_MATCH1/i \ \ \ \ }" "$WS_CONF"
|
||||||
|
sed -i "/$WS_CONF_MATCH1/i \\\n" "$WS_CONF"
|
||||||
else
|
else
|
||||||
echo "> No etherpad config done to server file, please report to:
|
echo "> No etherpad config done to server file, please report to:
|
||||||
-> https://forge.switnet.net/switnet/quick-jibri-installer/issues"
|
-> https://forge.switnet.net/switnet/quick-jibri-installer/issues"
|
||||||
|
@ -123,7 +142,7 @@ if [ "$(grep -c "etherpad_base" "$WS_CONF")" != 0 ]; then
|
||||||
echo -e "> $MEET_CONF seems configured, skipping...\n"
|
echo -e "> $MEET_CONF seems configured, skipping...\n"
|
||||||
else
|
else
|
||||||
echo -e "> Setting etherpad domain at $MEET_CONF...\n"
|
echo -e "> Setting etherpad domain at $MEET_CONF...\n"
|
||||||
sed -i "/ openSharedDocumentOnJoin:/a\ \ \ \ etherpad_base: \'https://$DOMAIN/etherpad/p/\'," "$MEET_CONF"
|
sed -i "s|// etherpad_base: .*|etherpad_base: \'https://$DOMAIN/etherpad/p/\',|" "$MEET_CONF"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "> Checking nginx configuration..."
|
echo "> Checking nginx configuration..."
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
# Based on:
|
# Based on:
|
||||||
# - https://community.jitsi.org/t/118883
|
# - https://community.jitsi.org/t/118883
|
||||||
#
|
#
|
||||||
# SwITNet Ltd © - 2023, https://switnet.net/
|
# SwITNet Ltd © - 2024, https://switnet.net/
|
||||||
# GPLv3 or later.
|
# GPLv3 or later.
|
||||||
|
|
||||||
# Reset
|
# Reset
|
||||||
|
|
|
@ -0,0 +1,109 @@
|
||||||
|
// XMPP environment config.
|
||||||
|
jibri {
|
||||||
|
streaming {
|
||||||
|
// A list of regex patterns for allowed RTMP URLs. The RTMP URL used
|
||||||
|
// when starting a stream must match at least one of the patterns in
|
||||||
|
// this list.
|
||||||
|
rtmp-allow-list = [
|
||||||
|
// By default, all services are allowed
|
||||||
|
".*"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
ffmpeg {
|
||||||
|
resolution = JIBRI_RES_CONF
|
||||||
|
}
|
||||||
|
chrome {
|
||||||
|
// The flags which will be passed to chromium when launching
|
||||||
|
flags = [
|
||||||
|
"--use-fake-ui-for-media-stream",
|
||||||
|
"--start-maximized",
|
||||||
|
"--kiosk",
|
||||||
|
"--enabled",
|
||||||
|
"--disable-infobars",
|
||||||
|
"--autoplay-policy=no-user-gesture-required",
|
||||||
|
"--ignore-certificate-errors",
|
||||||
|
"--disable-dev-shm-usage"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
stats {
|
||||||
|
enable-stats-d = true
|
||||||
|
}
|
||||||
|
call-status-checks {
|
||||||
|
// If all clients have their audio and video muted and if Jibri does not
|
||||||
|
// detect any data stream (audio or video) comming in, it will stop
|
||||||
|
// recording after NO_MEDIA_TIMEOUT expires.
|
||||||
|
no-media-timeout = 30 seconds
|
||||||
|
|
||||||
|
// If all clients have their audio and video muted, Jibri consideres this
|
||||||
|
// as an empty call and stops the recording after ALL_MUTED_TIMEOUT expires.
|
||||||
|
all-muted-timeout = 10 minutes
|
||||||
|
|
||||||
|
// When detecting if a call is empty, Jibri takes into consideration for how
|
||||||
|
// long the call has been empty already. If it has been empty for more than
|
||||||
|
// DEFAULT_CALL_EMPTY_TIMEOUT, it will consider it empty and stop the recording.
|
||||||
|
default-call-empty-timeout = 30 seconds
|
||||||
|
}
|
||||||
|
recording {
|
||||||
|
recordings-directory = "DIR_RECORD"
|
||||||
|
finalize-script = "REC_DIR"
|
||||||
|
}
|
||||||
|
api {
|
||||||
|
xmpp {
|
||||||
|
environments = [
|
||||||
|
{
|
||||||
|
// A user-friendly name for this environment
|
||||||
|
name = "JB_NAME"
|
||||||
|
|
||||||
|
// A list of XMPP server hosts to which we'll connect
|
||||||
|
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
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
66
grafana.sh
66
grafana.sh
|
@ -8,7 +8,7 @@
|
||||||
# by "mephisto"
|
# by "mephisto"
|
||||||
#
|
#
|
||||||
# Igor Kerstges © - 2021
|
# Igor Kerstges © - 2021
|
||||||
# SwITNet Ltd © - 2023, https://switnet.net/
|
# SwITNet Ltd © - 2024, https://switnet.net/
|
||||||
#
|
#
|
||||||
# GPLv3 or later.
|
# GPLv3 or later.
|
||||||
|
|
||||||
|
@ -43,11 +43,22 @@ systemctl enable "$1"
|
||||||
systemctl restart "$1"
|
systemctl restart "$1"
|
||||||
systemctl status "$1"
|
systemctl status "$1"
|
||||||
}
|
}
|
||||||
|
test_match() {
|
||||||
|
if grep -q "$1" "$2" ; then
|
||||||
|
echo "$(basename "$2") - OK..."
|
||||||
|
else
|
||||||
|
echo "$(basename "$2"), FAIL..."
|
||||||
|
echo "Please report this to https://forge.switnet.net/switnet/quick-jibri-installer"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
}
|
||||||
MAIN_TEL="/etc/telegraf/telegraf.conf"
|
MAIN_TEL="/etc/telegraf/telegraf.conf"
|
||||||
TEL_JIT="/etc/telegraf/telegraf.d/jitsi.conf"
|
TEL_JIT="/etc/telegraf/telegraf.d/jitsi.conf"
|
||||||
GRAFANA_INI="/etc/grafana/grafana.ini"
|
GRAFANA_INI="/etc/grafana/grafana.ini"
|
||||||
DOMAIN="$(find /etc/prosody/conf.d/ -name \*.lua|awk -F'.cfg' '!/localhost/{print $1}'|xargs basename)"
|
DOMAIN="$(find /etc/prosody/conf.d/ -name \*.lua|awk -F'.cfg' '!/localhost/{print $1}'|xargs basename)"
|
||||||
WS_CONF="/etc/nginx/sites-available/$DOMAIN.conf"
|
WS_CONF="/etc/nginx/sites-available/$DOMAIN.conf"
|
||||||
|
WS_MATCH1="# ensure all static content can always be found first"
|
||||||
|
WS_MATCH2="upstream prosody {"
|
||||||
GRAFANA_PASS="$(tr -dc "a-zA-Z0-9#_*=" < /dev/urandom | fold -w 14 | head -n1)"
|
GRAFANA_PASS="$(tr -dc "a-zA-Z0-9#_*=" < /dev/urandom | fold -w 14 | head -n1)"
|
||||||
|
|
||||||
# Min requirements
|
# Min requirements
|
||||||
|
@ -57,11 +68,17 @@ apt-get install -y gnupg2 \
|
||||||
wget \
|
wget \
|
||||||
jq
|
jq
|
||||||
|
|
||||||
|
# Make sure we can rely on the match strings.
|
||||||
|
printf "> Testing match strings on config files.\n"
|
||||||
|
test_match "$WS_MATCH1" "$WS_CONF"
|
||||||
|
|
||||||
echo "
|
echo "
|
||||||
# Setup InfluxDB Packages
|
# Setup InfluxDB Packages
|
||||||
"
|
"
|
||||||
curl -s https://repos.influxdata.com/influxdata-archive.key > /etc/apt/trusted.gpg.d/influxdata-archive.key
|
curl -s https://repos.influxdata.com/influxdata-archive.key > \
|
||||||
echo "deb [signed-by=/etc/apt/trusted.gpg.d/influxdata-archive.key] https://repos.influxdata.com/debian buster stable" | sudo tee /etc/apt/sources.list.d/influxdb.list
|
/etc/apt/trusted.gpg.d/influxdata-archive.key
|
||||||
|
echo "deb [signed-by=/etc/apt/trusted.gpg.d/influxdata-archive.key] https://repos.influxdata.com/debian buster stable" | \
|
||||||
|
sudo tee /etc/apt/sources.list.d/influxdb.list
|
||||||
apt-get update && apt-get install influxdb -y
|
apt-get update && apt-get install influxdb -y
|
||||||
run_service influxdb
|
run_service influxdb
|
||||||
|
|
||||||
|
@ -70,7 +87,8 @@ echo "
|
||||||
"
|
"
|
||||||
curl -s https://apt.grafana.com/gpg-full.key | \
|
curl -s https://apt.grafana.com/gpg-full.key | \
|
||||||
gpg --dearmor | tee /etc/apt/trusted.gpg.d/grafana-full-key.gpg >/dev/null
|
gpg --dearmor | tee /etc/apt/trusted.gpg.d/grafana-full-key.gpg >/dev/null
|
||||||
add-apt-repository "deb https://packages.grafana.com/oss/deb stable main"
|
echo "deb https://packages.grafana.com/oss/deb stable main" | \
|
||||||
|
sudo tee /etc/apt/sources.list.d/grafana_com_oss_deb.list
|
||||||
apt-get update && apt-get install grafana -y
|
apt-get update && apt-get install grafana -y
|
||||||
run_service grafana-server
|
run_service grafana-server
|
||||||
|
|
||||||
|
@ -138,11 +156,13 @@ echo '
|
||||||
# extra options to pass to the JVB daemon
|
# extra options to pass to the JVB daemon
|
||||||
JVB_OPTS="--apis=rest,xmpp"' >> /etc/jitsi/videobridge/config
|
JVB_OPTS="--apis=rest,xmpp"' >> /etc/jitsi/videobridge/config
|
||||||
sed -i "s|TRANSPORT=muc|TRANSPORT=muc,colibri|" /etc/jitsi/videobridge/sip-communicator.properties
|
sed -i "s|TRANSPORT=muc|TRANSPORT=muc,colibri|" /etc/jitsi/videobridge/sip-communicator.properties
|
||||||
|
# Enable videobridge REST API
|
||||||
|
hocon -f /etc/jitsi/videobridge/jvb.conf set videobridge.apis.rest.enabled true
|
||||||
systemctl restart jitsi-videobridge2
|
systemctl restart jitsi-videobridge2
|
||||||
|
|
||||||
echo -e "\n# Setup Grafana nginx domain\n"
|
echo -e "\n# Setup Grafana nginx domain\n"
|
||||||
sed -i "s|;protocol =.*|protocol = http|" $GRAFANA_INI
|
sed -i "s|;protocol =.*|protocol = http|" $GRAFANA_INI
|
||||||
sed -i "s|;http_addr =.*|http_addr = localhost|" $GRAFANA_INI
|
sed -i "s|;http_addr =.*|http_addr = 127.0.0.1|" $GRAFANA_INI
|
||||||
sed -i "s|;http_port =.*|http_port = 3000|" $GRAFANA_INI
|
sed -i "s|;http_port =.*|http_port = 3000|" $GRAFANA_INI
|
||||||
sed -i "s|;domain =.*|domain = $DOMAIN|" $GRAFANA_INI
|
sed -i "s|;domain =.*|domain = $DOMAIN|" $GRAFANA_INI
|
||||||
sed -i "s|;enforce_domain =.*|enforce_domain = false|" $GRAFANA_INI
|
sed -i "s|;enforce_domain =.*|enforce_domain = false|" $GRAFANA_INI
|
||||||
|
@ -160,10 +180,30 @@ while [ $secs -gt 0 ]; do
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ -f "$WS_CONF" ]; then
|
if [ -f "$WS_CONF" ]; then
|
||||||
sed -i "/# ensure all static content can always be found first/i \ \ \ \ location \~ \^\/(grafana\/|grafana\/login) {" "$WS_CONF"
|
sed -i "/$WS_MATCH1/i \ \ \ \ # Proxy Grafana." "$WS_CONF"
|
||||||
sed -i "/# ensure all static content can always be found first/i \ \ \ \ \ \ \ \ proxy_pass http:\/\/localhost:3000;" "$WS_CONF"
|
sed -i "/$WS_MATCH1/i \ \ \ \ location ~ ^/(grafana/|grafana/login) {" "$WS_CONF"
|
||||||
sed -i "/# ensure all static content can always be found first/i \ \ \ \ }" "$WS_CONF"
|
sed -i "/$WS_MATCH1/i \ \ \ \ \ \ proxy_set_header Host \$host;" "$WS_CONF"
|
||||||
sed -i "/# ensure all static content can always be found first/i \\\n" "$WS_CONF"
|
sed -i "/$WS_MATCH1/i \ \ \ \ \ \ proxy_pass http://grafana;" "$WS_CONF"
|
||||||
|
sed -i "/$WS_MATCH1/i \ \ \ \ }" "$WS_CONF"
|
||||||
|
sed -i "/$WS_MATCH1/i \\\n" "$WS_CONF"
|
||||||
|
sed -i "/$WS_MATCH1/i \ \ \ \ # Proxy Grafana Live WebSocket connections." "$WS_CONF"
|
||||||
|
sed -i "/$WS_MATCH1/i \ \ \ \ location /grafana/api/live/ {" "$WS_CONF"
|
||||||
|
sed -i "/$WS_MATCH1/i \ \ \ \ \ \ proxy_http_version 1.1;" "$WS_CONF"
|
||||||
|
sed -i "/$WS_MATCH1/i \ \ \ \ \ \ proxy_set_header Upgrade \$http_upgrade;" "$WS_CONF"
|
||||||
|
sed -i "/$WS_MATCH1/i \ \ \ \ \ \ proxy_set_header Connection \$connection_upgrade;" "$WS_CONF"
|
||||||
|
sed -i "/$WS_MATCH1/i \ \ \ \ \ \ proxy_set_header Host \$host;" "$WS_CONF"
|
||||||
|
sed -i "/$WS_MATCH1/i \ \ \ \ \ \ proxy_pass http://grafana;" "$WS_CONF"
|
||||||
|
sed -i "/$WS_MATCH1/i \ \ \ \ }" "$WS_CONF"
|
||||||
|
|
||||||
|
sed -i "/$WS_MATCH2/i # This is required to proxy Grafana Live WebSocket connections." "$WS_CONF"
|
||||||
|
sed -i "/$WS_MATCH2/i map \$http_upgrade \$connection_upgrade {" "$WS_CONF"
|
||||||
|
sed -i "/$WS_MATCH2/i \ \ default upgrade;" "$WS_CONF"
|
||||||
|
sed -i "/$WS_MATCH2/i \ \ '' close;" "$WS_CONF"
|
||||||
|
sed -i "/$WS_MATCH2/i }" "$WS_CONF"
|
||||||
|
sed -i "/$WS_MATCH1/i \\\n" "$WS_CONF"
|
||||||
|
sed -i "/$WS_MATCH2/i upstream grafana {" "$WS_CONF"
|
||||||
|
sed -i "/$WS_MATCH2/i \ \ server localhost:3000;" "$WS_CONF"
|
||||||
|
sed -i "/$WS_MATCH2/i }" "$WS_CONF"
|
||||||
systemctl restart nginx
|
systemctl restart nginx
|
||||||
else
|
else
|
||||||
echo "No app configuration done to server file, please report to:
|
echo "No app configuration done to server file, please report to:
|
||||||
|
@ -179,7 +219,7 @@ PUT -H "Content-Type: application/json;charset=UTF-8" -d \
|
||||||
\"oldPassword\": \"admin\",
|
\"oldPassword\": \"admin\",
|
||||||
\"newPassword\": \"$GRAFANA_PASS\",
|
\"newPassword\": \"$GRAFANA_PASS\",
|
||||||
\"confirmNew\": \"$GRAFANA_PASS\"
|
\"confirmNew\": \"$GRAFANA_PASS\"
|
||||||
}" http://localhost:3000/api/user/password; echo ""
|
}" http://127.0.0.1:3000/api/user/password; echo ""
|
||||||
|
|
||||||
echo "
|
echo "
|
||||||
# Create InfluxDB datasource
|
# Create InfluxDB datasource
|
||||||
|
@ -189,16 +229,16 @@ POST -H 'Content-Type: application/json;charset=UTF-8' -d \
|
||||||
'{
|
'{
|
||||||
"name": "InfluxDB",
|
"name": "InfluxDB",
|
||||||
"type": "influxdb",
|
"type": "influxdb",
|
||||||
"url": "http://localhost:8086",
|
"url": "http://127.0.0.1:8086",
|
||||||
"access": "proxy",
|
"access": "proxy",
|
||||||
"isDefault": true,
|
"isDefault": true,
|
||||||
"database": "jitsi"
|
"database": "jitsi"
|
||||||
}' http://localhost:3000/api/datasources; echo ""
|
}' http://127.0.0.1:3000/api/datasources; echo ""
|
||||||
|
|
||||||
echo "
|
echo "
|
||||||
# Add Grafana Dashboard
|
# Add Grafana Dashboard
|
||||||
"
|
"
|
||||||
grafana_host="http://localhost:3000"
|
grafana_host="http://127.0.0.1:3000"
|
||||||
grafana_cred="admin:$GRAFANA_PASS"
|
grafana_cred="admin:$GRAFANA_PASS"
|
||||||
grafana_datasource="InfluxDB"
|
grafana_datasource="InfluxDB"
|
||||||
ds=(11969);
|
ds=(11969);
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" width="1" height="1"/>
|
After Width: | Height: | Size: 100 B |
|
@ -0,0 +1,128 @@
|
||||||
|
#!/bin/bash
|
||||||
|
# Quick Jigasi Installer with VOSK backend - *buntu (LTS) based systems.
|
||||||
|
# SwITNet Ltd © - 2024, https://switnet.net/
|
||||||
|
# GPLv3 or later.
|
||||||
|
|
||||||
|
#Check if user is root
|
||||||
|
if ! [ "$(id -u)" = 0 ]; then
|
||||||
|
echo "You need to be root or have sudo privileges!"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
exit_if_not_installed() {
|
||||||
|
if [ "$(dpkg-query -W -f='${Status}' "$1" 2>/dev/null | grep -c "ok installed")" != "1" ]; then
|
||||||
|
echo " This instance doesn't have $1 installed, exiting..."
|
||||||
|
echo " If you think this is an error, please report to:
|
||||||
|
-> https://forge.switnet.net/switnet/quick-jibri-installer/issues "
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
clear
|
||||||
|
echo ''
|
||||||
|
echo '########################################################################'
|
||||||
|
echo ' Jigasi Transcript addon'
|
||||||
|
echo '########################################################################'
|
||||||
|
echo ' by Software, IT & Networks Ltd'
|
||||||
|
echo ''
|
||||||
|
|
||||||
|
exit_if_not_installed jitsi-meet
|
||||||
|
|
||||||
|
DOMAIN="$(find /etc/prosody/conf.d/ -name \*.lua|awk -F'.cfg' '!/localhost/{print $1}'|xargs basename)"
|
||||||
|
JIG_TRANSC_PASWD="$(tr -dc "a-zA-Z0-9#*=" < /dev/urandom | fold -w 16 | head -n1)"
|
||||||
|
JIG_SIP_PROP="/etc/jitsi/jigasi/sip-communicator.properties"
|
||||||
|
export DOMAIN
|
||||||
|
export JIG_TRANSC_PASWD
|
||||||
|
|
||||||
|
apt-get -q2 update
|
||||||
|
|
||||||
|
# Disable SIP account prompt by default
|
||||||
|
echo "jigasi jigasi/sip-account string ''" | debconf-set-selections
|
||||||
|
echo "jigasi jigasi/sip-password password ''" | debconf-set-selections
|
||||||
|
|
||||||
|
echo "Installing Jigasi, SIP configuration disabled by default."
|
||||||
|
apt-get -y install gettext-base jigasi docker.io
|
||||||
|
|
||||||
|
echo "Please select a language for the VOSK transcription model:"
|
||||||
|
echo "1) Chinese"
|
||||||
|
echo "2) English"
|
||||||
|
echo "3) French"
|
||||||
|
echo "4) German"
|
||||||
|
echo "5) Hindi"
|
||||||
|
echo "6) Japanese"
|
||||||
|
echo "7) Russian"
|
||||||
|
echo "8) Spanish"
|
||||||
|
|
||||||
|
read -p "Enter the number corresponding to your language choice: " -r lang_choice
|
||||||
|
|
||||||
|
case $lang_choice in
|
||||||
|
1)
|
||||||
|
echo "You selected Chinese."
|
||||||
|
VOSK_DOCKER_MODEL="alphacep/kaldi-cn"
|
||||||
|
;;
|
||||||
|
2)
|
||||||
|
echo "You selected English."
|
||||||
|
VOSK_DOCKER_MODEL="alphacep/kaldi-en"
|
||||||
|
;;
|
||||||
|
3)
|
||||||
|
echo "You selected French."
|
||||||
|
VOSK_DOCKER_MODEL="alphacep/kaldi-fr"
|
||||||
|
;;
|
||||||
|
4)
|
||||||
|
echo "You selected German."
|
||||||
|
VOSK_DOCKER_MODEL="alphacep/kaldi-de"
|
||||||
|
;;
|
||||||
|
5)
|
||||||
|
echo "You selected Hindi."
|
||||||
|
VOSK_DOCKER_MODEL="alphacep/kaldi-hi"
|
||||||
|
;;
|
||||||
|
6)
|
||||||
|
echo "You selected Japanese."
|
||||||
|
VOSK_DOCKER_MODEL="alphacep/kaldi-ja"
|
||||||
|
;;
|
||||||
|
7)
|
||||||
|
echo "You selected Russian."
|
||||||
|
VOSK_DOCKER_MODEL="alphacep/kaldi-ru"
|
||||||
|
;;
|
||||||
|
8)
|
||||||
|
echo "You selected Spanish."
|
||||||
|
VOSK_DOCKER_MODEL="alphacep/kaldi-es"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Invalid selection. Please choose a number between 1 and 8."
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# Running selected VOSK docker model.
|
||||||
|
docker run -d --restart always -p 2700:2700 ${VOSK_DOCKER_MODEL}:latest
|
||||||
|
|
||||||
|
echo "Setting up Jigasi transcript with current platform..."
|
||||||
|
|
||||||
|
# Jitsi Meet
|
||||||
|
echo "> Patching Jitsi Meet's config.js for Transcription support."
|
||||||
|
echo " Read more at patches/jigasi/001-jigasi-meet-config.patch file"
|
||||||
|
envsubst < patches/jigasi/001-jigasi-meet-config.patch | \
|
||||||
|
patch --no-backup-if-mismatch -d / -p1
|
||||||
|
|
||||||
|
# Jigasi
|
||||||
|
echo "> Patching jigasi's sip-communicator.properties configuration."
|
||||||
|
echo " Read more at patches/jigasi/002-jigasi-sip-properties.patch file"
|
||||||
|
cp "$JIG_SIP_PROP" ${JIG_SIP_PROP}-dpkg-file
|
||||||
|
envsubst < patches/jigasi/002-jigasi-sip-properties.patch | \
|
||||||
|
patch --no-backup-if-mismatch -d / -p1
|
||||||
|
|
||||||
|
# Create transcribe user on hidden domain.
|
||||||
|
prosodyctl register transcriber recorder."$DOMAIN" "$JIG_TRANSC_PASWD"
|
||||||
|
|
||||||
|
# Restart services.
|
||||||
|
systemctl restart prosody \
|
||||||
|
jicofo \
|
||||||
|
jigasi \
|
||||||
|
jibri* \
|
||||||
|
jitsi-videobridge2
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
echo "Full transcript files are available at:"
|
||||||
|
echo "--> /var/lib/jigasi/transcripts/"
|
||||||
|
echo ""
|
||||||
|
echo "Happy transcripting!"
|
||||||
|
echo ""
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Jitsi Meet recurring upgrader and customization keeper
|
# Jitsi Meet recurring upgrader and customization keeper
|
||||||
# for Debian/*buntu binaries.
|
# for Debian/*buntu binaries.
|
||||||
# SwITNet Ltd © - 2023, https://switnet.net/
|
# SwITNet Ltd © - 2024, https://switnet.net/
|
||||||
# GNU GPLv3 or later.
|
# GNU GPLv3 or later.
|
||||||
|
|
||||||
while getopts m: option
|
while getopts m: option
|
||||||
|
|
38
jm-bm.sh
38
jm-bm.sh
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Jitsi Meet brandless mode
|
# Jitsi Meet brandless mode
|
||||||
# for Debian/*buntu binaries.
|
# for Debian/*buntu binaries.
|
||||||
# SwITNet Ltd © - 2023, https://switnet.net/
|
# SwITNet Ltd © - 2024, https://switnet.net/
|
||||||
# GNU GPLv3 or later.
|
# GNU GPLv3 or later.
|
||||||
|
|
||||||
while getopts m: option
|
while getopts m: option
|
||||||
|
@ -27,6 +27,7 @@ BUNDLE_JS="/usr/share/jitsi-meet/libs/app.bundle.min.js"
|
||||||
#
|
#
|
||||||
JM_IMG_PATH="/usr/share/jitsi-meet/images"
|
JM_IMG_PATH="/usr/share/jitsi-meet/images"
|
||||||
WTM2_PATH="$JM_IMG_PATH/watermark2.png"
|
WTM2_PATH="$JM_IMG_PATH/watermark2.png"
|
||||||
|
WTM2_SVG_PATH="$JM_IMG_PATH/watermark2.svg"
|
||||||
FICON_PATH="$JM_IMG_PATH/favicon2.ico"
|
FICON_PATH="$JM_IMG_PATH/favicon2.ico"
|
||||||
REC_ICON_PATH="$JM_IMG_PATH/gnome_record.png"
|
REC_ICON_PATH="$JM_IMG_PATH/gnome_record.png"
|
||||||
#
|
#
|
||||||
|
@ -36,29 +37,30 @@ PART_USER="Participant"
|
||||||
LOCAL_USER="me"
|
LOCAL_USER="me"
|
||||||
#
|
#
|
||||||
#SEC_ROOM="TBD"
|
#SEC_ROOM="TBD"
|
||||||
|
copy_if_not_there() {
|
||||||
|
if [ ! -f "$1" ]; then
|
||||||
|
cp images/"$(echo $1|xargs basename)" "$1"
|
||||||
|
else
|
||||||
|
echo "$(echo $1|xargs basename) file exists, skipping copying..."
|
||||||
|
fi
|
||||||
|
}
|
||||||
echo '
|
echo '
|
||||||
#--------------------------------------------------
|
#--------------------------------------------------
|
||||||
# Applying Brandless mode
|
# Applying Brandless mode
|
||||||
#--------------------------------------------------
|
#--------------------------------------------------
|
||||||
'
|
'
|
||||||
|
|
||||||
#Watermark
|
#Watermark
|
||||||
if [ ! -f "$WTM2_PATH" ]; then
|
copy_if_not_there "$WTM2_PATH"
|
||||||
cp images/watermark2.png "$WTM2_PATH"
|
|
||||||
else
|
#Watermark svg
|
||||||
echo "watermark2 file exists, skipping copying..."
|
copy_if_not_there "$WTM2_SVG_PATH"
|
||||||
fi
|
|
||||||
#Favicon
|
#Favicon
|
||||||
if [ ! -f "$FICON_PATH" ]; then
|
copy_if_not_there "$FICON_PATH"
|
||||||
cp images/favicon2.ico "$FICON_PATH"
|
|
||||||
else
|
|
||||||
echo "favicon2 file exists, skipping copying..."
|
|
||||||
fi
|
|
||||||
#Local recording icon
|
#Local recording icon
|
||||||
if [ ! -f "$REC_ICON_PATH" ];then
|
copy_if_not_there "$REC_ICON_PATH"
|
||||||
cp images/gnome_record.png "$REC_ICON_PATH"
|
|
||||||
else
|
|
||||||
echo "recording icon exists, skipping copying..."
|
|
||||||
fi
|
|
||||||
|
|
||||||
#Custom / Remove icons
|
#Custom / Remove icons
|
||||||
sed -i "s|watermark.png|watermark2.png|g" "$CSS_FILE"
|
sed -i "s|watermark.png|watermark2.png|g" "$CSS_FILE"
|
||||||
|
@ -70,6 +72,10 @@ sed -i "s|icon-cloud.png|gnome_record.png|g" "$BUNDLE_JS"
|
||||||
if ! grep -q ".leftwatermark{display:none" "$CSS_FILE" ; then
|
if ! grep -q ".leftwatermark{display:none" "$CSS_FILE" ; then
|
||||||
sed -i "s|.leftwatermark{|.leftwatermark{display:none;|" "$CSS_FILE"
|
sed -i "s|.leftwatermark{|.leftwatermark{display:none;|" "$CSS_FILE"
|
||||||
fi
|
fi
|
||||||
|
#Replace App logo
|
||||||
|
sed -i "s|// defaultLogoUrl: .*| defaultLogoUrl: 'images/watermark2.svg',|" "$MEET_CONF"
|
||||||
|
#Overwrite favicon svg
|
||||||
|
cp images/watermark2.svg $JM_IMG_PATH/favicon.svg
|
||||||
|
|
||||||
#Customize room title
|
#Customize room title
|
||||||
sed -i "s|Jitsi Meet|$APP_NAME|g" "$TITLE_FILE"
|
sed -i "s|Jitsi Meet|$APP_NAME|g" "$TITLE_FILE"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# JRA (Jibri Recordings Access) via Nextcloud
|
# JRA (Jibri Recordings Access) via Nextcloud
|
||||||
# SwITNet Ltd © - 2023, https://switnet.net/
|
# SwITNet Ltd © - 2024, https://switnet.net/
|
||||||
# GPLv3 or later.
|
# GPLv3 or later.
|
||||||
|
|
||||||
while getopts m: option
|
while getopts m: option
|
||||||
|
@ -59,7 +59,7 @@ DIR_RECORD="$(awk -F '"' '/RECORDING/{print$2}' /home/jibri/finalize_recording
|
||||||
REDIS_CONF="/etc/redis/redis.conf"
|
REDIS_CONF="/etc/redis/redis.conf"
|
||||||
JITSI_MEET_PROXY="/etc/nginx/modules-enabled/60-jitsi-meet.conf"
|
JITSI_MEET_PROXY="/etc/nginx/modules-enabled/60-jitsi-meet.conf"
|
||||||
[ -f "$JITSI_MEET_PROXY" ] && PREAD_PROXY=$(grep -nr "preread_server_name" "$JITSI_MEET_PROXY" | cut -d ":" -f1)
|
[ -f "$JITSI_MEET_PROXY" ] && PREAD_PROXY=$(grep -nr "preread_server_name" "$JITSI_MEET_PROXY" | cut -d ":" -f1)
|
||||||
PUBLIC_IP="$(dig +short myip.opendns.com @resolver1.opendns.com)"
|
PUBLIC_IP="$(dig -4 +short myip.opendns.com @resolver1.opendns.com)"
|
||||||
ISO3166_CODE=TBD
|
ISO3166_CODE=TBD
|
||||||
NL="$(printf '\n ')"
|
NL="$(printf '\n ')"
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Custom High Performance Jitsi conf
|
# Custom High Performance Jitsi conf
|
||||||
# SwITNet Ltd © - 2023, https://switnet.net/
|
# SwITNet Ltd © - 2024, https://switnet.net/
|
||||||
# GPLv3 or later.
|
# GPLv3 or later.
|
||||||
|
|
||||||
while getopts m: option
|
while getopts m: option
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Custom Selenium Grid-Node fro Jitsi Meet
|
# Custom Selenium Grid-Node fro Jitsi Meet
|
||||||
# Pandian © - https://community.jitsi.org/u/Pandian
|
# Pandian © - https://community.jitsi.org/u/Pandian
|
||||||
# SwITNet Ltd © - 2023, https://switnet.net/
|
# SwITNet Ltd © - 2024, https://switnet.net/
|
||||||
# GPLv3 or later.
|
# GPLv3 or later.
|
||||||
|
|
||||||
while getopts m: option
|
while getopts m: option
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# System-tune-up to remove system software restrictions on a huge load of connections.
|
# System-tune-up to remove system software restrictions on a huge load of connections.
|
||||||
# Be aware that hardware/infrastructure resources are the most common limiters.
|
# Be aware that hardware/infrastructure resources are the most common limiters.
|
||||||
#
|
#
|
||||||
# SwITNet Ltd © - 2023, https://switnet.net/
|
# SwITNet Ltd © - 2024, https://switnet.net/
|
||||||
# GPLv3 or later.
|
# GPLv3 or later.
|
||||||
|
|
||||||
while getopts m: option
|
while getopts m: option
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# JWT Mode Setup
|
# JWT Mode Setup
|
||||||
# SwITNet Ltd © - 2023, https://switnet.net/
|
# SwITNet Ltd © - 2024, https://switnet.net/
|
||||||
# GPLv3 or later.
|
# GPLv3 or later.
|
||||||
|
|
||||||
while getopts m: option
|
while getopts m: option
|
||||||
|
|
|
@ -0,0 +1,40 @@
|
||||||
|
# Quick Jigasi Installer with VOSK backend - *buntu (LTS) based systems.
|
||||||
|
# SwITNet Ltd © - 2024, https://switnet.net/
|
||||||
|
# GPLv3 or later.
|
||||||
|
|
||||||
|
Enable transcription on jitsi meet config.js file.
|
||||||
|
|
||||||
|
diff --git a/etc/jitsi/meet/${DOMAIN}-config.js b/etc/jitsi/meet/${DOMAIN}-config.js
|
||||||
|
index f412891..f704157 100644
|
||||||
|
--- a/etc/jitsi/meet/${DOMAIN}-config.js
|
||||||
|
+++ b/etc/jitsi/meet/${DOMAIN}-config.js
|
||||||
|
@@ -426,9 +426,9 @@ var config = {
|
||||||
|
// autoCaptionOnRecord: false,
|
||||||
|
|
||||||
|
// Transcription options.
|
||||||
|
- // transcription: {
|
||||||
|
+ transcription: {
|
||||||
|
// // Whether the feature should be enabled or not.
|
||||||
|
- // enabled: false,
|
||||||
|
+ enabled: true,
|
||||||
|
|
||||||
|
// // Translation languages.
|
||||||
|
// // Available languages can be found in
|
||||||
|
@@ -443,7 +443,7 @@ var config = {
|
||||||
|
// // detected based on the environment, e.g. if the app is opened in a chrome instance which
|
||||||
|
// // is using french as its default language then transcriptions for that participant will be in french.
|
||||||
|
// // Defaults to true.
|
||||||
|
- // useAppLanguage: true,
|
||||||
|
+ useAppLanguage: true,
|
||||||
|
|
||||||
|
// // Transcriber language. This settings will only work if "useAppLanguage"
|
||||||
|
// // is explicitly set to false.
|
||||||
|
@@ -453,7 +453,7 @@ var config = {
|
||||||
|
|
||||||
|
// // Enables automatic turning on transcribing when recording is started
|
||||||
|
// autoTranscribeOnRecord: false,
|
||||||
|
- // },
|
||||||
|
+ },
|
||||||
|
|
||||||
|
// Misc
|
||||||
|
|
|
@ -0,0 +1,80 @@
|
||||||
|
# Quick Jigasi Installer with VOSK backend - *buntu (LTS) based systems.
|
||||||
|
# SwITNet Ltd © - 2024, https://switnet.net/
|
||||||
|
# GPLv3 or later.
|
||||||
|
|
||||||
|
Modify sip-communicator.properties to run Jigasi along with VOSK Models.
|
||||||
|
|
||||||
|
diff --git a/etc/jitsi/jigasi/sip-communicator.properties b/etc/jitsi/jigasi/sip-communicator.properties
|
||||||
|
index 7a8d0f3..ae5369a 100644
|
||||||
|
--- a/etc/jitsi/jigasi/sip-communicator.properties
|
||||||
|
+++ b/etc/jitsi/jigasi/sip-communicator.properties
|
||||||
|
@@ -165,12 +165,12 @@ org.jitsi.jigasi.xmpp.acc.USE_DEFAULT_STUN_SERVER=false
|
||||||
|
|
||||||
|
# If you want jigasi to perform authenticated login instead of anonymous login
|
||||||
|
# to the XMPP server, you can set the following properties.
|
||||||
|
-# org.jitsi.jigasi.xmpp.acc.USER_ID=SOME_USER@SOME_DOMAIN
|
||||||
|
-# org.jitsi.jigasi.xmpp.acc.PASS=SOME_PASS
|
||||||
|
-# org.jitsi.jigasi.xmpp.acc.ANONYMOUS_AUTH=false
|
||||||
|
+org.jitsi.jigasi.xmpp.acc.USER_ID=transcriber@recorder.${DOMAIN}
|
||||||
|
+org.jitsi.jigasi.xmpp.acc.PASS=${JIG_TRANSC_PASWD}
|
||||||
|
+org.jitsi.jigasi.xmpp.acc.ANONYMOUS_AUTH=false
|
||||||
|
|
||||||
|
# To fix SSL/TLS required by client but not supported by server
|
||||||
|
-#org.jitsi.jigasi.xmpp.acc.ALLOW_NON_SECURE=true
|
||||||
|
+org.jitsi.jigasi.xmpp.acc.ALLOW_NON_SECURE=true
|
||||||
|
|
||||||
|
# Can be used in combination with jitsi-meet module mod_auth_jitsi-shared-secret
|
||||||
|
# To have jigasi use a random username on every call
|
||||||
|
@@ -187,7 +187,7 @@ org.jitsi.jigasi.xmpp.acc.USE_DEFAULT_STUN_SERVER=false
|
||||||
|
# Activate this property if you are using self-signed certificates or other
|
||||||
|
# type of non-trusted certicates. In this mode your service trust in the
|
||||||
|
# remote certificates always.
|
||||||
|
-# net.java.sip.communicator.service.gui.ALWAYS_TRUST_MODE_ENABLED=true
|
||||||
|
+net.java.sip.communicator.service.gui.ALWAYS_TRUST_MODE_ENABLED=true
|
||||||
|
|
||||||
|
# Enable this property to be able to shutdown gracefully jigasi using
|
||||||
|
# a rest command
|
||||||
|
@@ -196,31 +196,31 @@ org.jitsi.jigasi.xmpp.acc.USE_DEFAULT_STUN_SERVER=false
|
||||||
|
# Options regarding Transcription. Read the README for a detailed description
|
||||||
|
# about each property
|
||||||
|
|
||||||
|
-#org.jitsi.jigasi.ENABLE_TRANSCRIPTION=false
|
||||||
|
-#org.jitsi.jigasi.ENABLE_SIP=true
|
||||||
|
+org.jitsi.jigasi.ENABLE_TRANSCRIPTION=true
|
||||||
|
+org.jitsi.jigasi.ENABLE_SIP=false
|
||||||
|
|
||||||
|
# whether to use the more expensive, but better performing
|
||||||
|
# "video" model when doing transcription
|
||||||
|
# org.jitsi.jigasi.transcription.USE_VIDEO_MODEL = false
|
||||||
|
|
||||||
|
# delivering final transcript
|
||||||
|
-# org.jitsi.jigasi.transcription.DIRECTORY=/var/lib/jigasi/transcripts
|
||||||
|
-# org.jitsi.jigasi.transcription.BASE_URL=http://localhost/
|
||||||
|
-# org.jitsi.jigasi.transcription.jetty.port=-1
|
||||||
|
-# org.jitsi.jigasi.transcription.ADVERTISE_URL=false
|
||||||
|
+org.jitsi.jigasi.transcription.DIRECTORY=/var/lib/jigasi/transcripts
|
||||||
|
+org.jitsi.jigasi.transcription.BASE_URL=http://localhost/
|
||||||
|
+org.jitsi.jigasi.transcription.jetty.port=-1
|
||||||
|
+org.jitsi.jigasi.transcription.ADVERTISE_URL=false
|
||||||
|
|
||||||
|
# save formats
|
||||||
|
-# org.jitsi.jigasi.transcription.SAVE_JSON=false
|
||||||
|
-# org.jitsi.jigasi.transcription.SAVE_TXT=true
|
||||||
|
+org.jitsi.jigasi.transcription.SAVE_JSON=false
|
||||||
|
+org.jitsi.jigasi.transcription.SAVE_TXT=true
|
||||||
|
|
||||||
|
# send formats
|
||||||
|
-# org.jitsi.jigasi.transcription.SEND_JSON=true
|
||||||
|
-# org.jitsi.jigasi.transcription.SEND_TXT=false
|
||||||
|
+org.jitsi.jigasi.transcription.SEND_JSON=true
|
||||||
|
+org.jitsi.jigasi.transcription.SEND_TXT=false
|
||||||
|
|
||||||
|
# Vosk server
|
||||||
|
-# org.jitsi.jigasi.transcription.customService=org.jitsi.jigasi.transcription.VoskTranscriptionService
|
||||||
|
+org.jitsi.jigasi.transcription.customService=org.jitsi.jigasi.transcription.VoskTranscriptionService
|
||||||
|
# org.jitsi.jigasi.transcription.vosk.websocket_url={"en": "ws://localhost:2700", "fr": "ws://localhost:2710"}
|
||||||
|
-# org.jitsi.jigasi.transcription.vosk.websocket_url=ws://localhost:2700
|
||||||
|
+org.jitsi.jigasi.transcription.vosk.websocket_url=ws://localhost:2700
|
||||||
|
|
||||||
|
# Whisper live transcription server
|
||||||
|
# org.jitsi.jigasi.transcription.customService=org.jitsi.jigasi.transcription.WhisperTranscriptionService
|
|
@ -0,0 +1,66 @@
|
||||||
|
# Quick Jibri Installer - *buntu (LTS) based systems.
|
||||||
|
# SwITNet Ltd © - 2024, https://switnet.net/
|
||||||
|
# GPLv3 or later.
|
||||||
|
|
||||||
|
Patch jitsi-meet config.js to enable recording and livestreaming by default.
|
||||||
|
|
||||||
|
diff --git a/etc/jitsi/meet/${DOMAIN}-config.js b/etc/jitsi/meet/${DOMAIN}-config.js
|
||||||
|
index dcb860b..8f64c7c 100644
|
||||||
|
--- a/etc/jitsi/meet/${DOMAIN}-config.js
|
||||||
|
+++ b/etc/jitsi/meet/${DOMAIN}-config.js
|
||||||
|
@@ -343,12 +343,12 @@ var config = {
|
||||||
|
// // showPrejoinWarning: true,
|
||||||
|
// },
|
||||||
|
|
||||||
|
- // recordingService: {
|
||||||
|
+ recordingService: {
|
||||||
|
// // When integrations like dropbox are enabled only that will be shown,
|
||||||
|
// // by enabling fileRecordingsServiceEnabled, we show both the integrations
|
||||||
|
// // and the generic recording service (its configuration and storage type
|
||||||
|
// // depends on jibri configuration)
|
||||||
|
- // enabled: false,
|
||||||
|
+ enabled: true,
|
||||||
|
|
||||||
|
// // Whether to show the possibility to share file recording with other people
|
||||||
|
// // (e.g. meeting participants), based on the actual implementation
|
||||||
|
@@ -357,7 +357,7 @@ var config = {
|
||||||
|
|
||||||
|
// // Hide the warning that says we only store the recording for 24 hours.
|
||||||
|
// hideStorageWarning: false,
|
||||||
|
- // },
|
||||||
|
+ },
|
||||||
|
|
||||||
|
// DEPRECATED. Use recordingService.enabled instead.
|
||||||
|
// fileRecordingsServiceEnabled: false,
|
||||||
|
@@ -368,7 +368,7 @@ var config = {
|
||||||
|
// Local recording configuration.
|
||||||
|
// localRecording: {
|
||||||
|
// // Whether to disable local recording or not.
|
||||||
|
- // disable: false,
|
||||||
|
+ // disable: true,
|
||||||
|
|
||||||
|
// // Whether to notify all participants when a participant is recording locally.
|
||||||
|
// notifyAllParticipants: false,
|
||||||
|
@@ -378,9 +378,9 @@ var config = {
|
||||||
|
// },
|
||||||
|
|
||||||
|
// Customize the Live Streaming dialog. Can be modified for a non-YouTube provider.
|
||||||
|
- // liveStreaming: {
|
||||||
|
+ liveStreaming: {
|
||||||
|
// // Whether to enable live streaming or not.
|
||||||
|
- // enabled: false,
|
||||||
|
+ enabled: true,
|
||||||
|
// // Terms link
|
||||||
|
// termsLink: 'https://www.youtube.com/t/terms',
|
||||||
|
// // Data privacy link
|
||||||
|
@@ -388,8 +388,8 @@ var config = {
|
||||||
|
// // RegExp string that validates the stream key input field
|
||||||
|
// validatorRegExpString: '^(?:[a-zA-Z0-9]{4}(?:-(?!$)|$)){4}',
|
||||||
|
// // Documentation reference for the live streaming feature.
|
||||||
|
- // helpLink: 'https://jitsi.org/live'
|
||||||
|
- // },
|
||||||
|
+ helpLink: 'https://forge.switnet.net/switnet/quick-jibri-installer'
|
||||||
|
+ },
|
||||||
|
|
||||||
|
// DEPRECATED. Use liveStreaming.enabled instead.
|
||||||
|
// liveStreamingEnabled: false,
|
|
@ -0,0 +1,31 @@
|
||||||
|
# Quick Jibri Installer - *buntu (LTS) based systems.
|
||||||
|
# SwITNet Ltd © - 2024, https://switnet.net/
|
||||||
|
# GPLv3 or later.
|
||||||
|
|
||||||
|
Patch jitsi-meet config.js to enable/disable welcome page.
|
||||||
|
|
||||||
|
diff --git a/etc/jitsi/meet/${DOMAIN}-config.js b/etc/jitsi/meet/${DOMAIN}-config.js
|
||||||
|
index dcb860b..2094287 100644
|
||||||
|
--- a/etc/jitsi/meet/${DOMAIN}-config.js
|
||||||
|
+++ b/etc/jitsi/meet/${DOMAIN}-config.js
|
||||||
|
@@ -664,13 +664,13 @@ var config = {
|
||||||
|
// enableWelcomePage: true,
|
||||||
|
|
||||||
|
// Configs for welcome page.
|
||||||
|
- // welcomePage: {
|
||||||
|
- // // Whether to disable welcome page. In case it's disabled a random room
|
||||||
|
- // // will be joined when no room is specified.
|
||||||
|
- // disabled: false,
|
||||||
|
- // // If set, landing page will redirect to this URL.
|
||||||
|
- // customUrl: ''
|
||||||
|
- // },
|
||||||
|
+ welcomePage: {
|
||||||
|
+ // Whether to disable welcome page. In case it's disabled a random room
|
||||||
|
+ // will be joined when no room is specified.
|
||||||
|
+ disabled: ${ENABLE_WELCP_BOL},
|
||||||
|
+ // If set, landing page will redirect to this URL.
|
||||||
|
+ customUrl: ''
|
||||||
|
+ },
|
||||||
|
|
||||||
|
// Configs for the lobby screen.
|
||||||
|
// lobby: {
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Quick Jibri Installer - *buntu (LTS) based systems.
|
# Quick Jibri Installer - *buntu (LTS) based systems.
|
||||||
# SwITNet Ltd © - 2023, https://switnet.net/
|
# SwITNet Ltd © - 2024, https://switnet.net/
|
||||||
# GPLv3 or later.
|
# GPLv3 or later.
|
||||||
{
|
{
|
||||||
echo "Started at $(date +'%Y-%m-%d %H:%M:%S')" >> qj-installer.log
|
echo "Started at $(date +'%Y-%m-%d %H:%M:%S')" >> qj-installer.log
|
||||||
|
@ -538,19 +538,20 @@ JB_NAME="Jibri Sessions"
|
||||||
LE_RENEW_LOG="/var/log/letsencrypt/renew.log"
|
LE_RENEW_LOG="/var/log/letsencrypt/renew.log"
|
||||||
MOD_LISTU="https://prosody.im/files/mod_listusers.lua"
|
MOD_LISTU="https://prosody.im/files/mod_listusers.lua"
|
||||||
MOD_LIST_FILE="/usr/lib/prosody/modules/mod_listusers.lua"
|
MOD_LIST_FILE="/usr/lib/prosody/modules/mod_listusers.lua"
|
||||||
ENABLE_SA="yes"
|
|
||||||
MJS_RAND_TAIL="$(tr -dc "a-zA-Z0-9" < /dev/urandom | fold -w 4 | head -n1)"
|
MJS_RAND_TAIL="$(tr -dc "a-zA-Z0-9" < /dev/urandom | fold -w 4 | head -n1)"
|
||||||
MJS_USER="jbsync_$MJS_RAND_TAIL"
|
MJS_USER="jbsync_$MJS_RAND_TAIL"
|
||||||
MJS_USER_PASS="$(tr -dc "a-zA-Z0-9#_*=" < /dev/urandom | fold -w 32 | head -n1)"
|
MJS_USER_PASS="$(tr -dc "a-zA-Z0-9#_*=" < /dev/urandom | fold -w 32 | head -n1)"
|
||||||
FQDN_HOST="fqdn"
|
FQDN_HOST="fqdn"
|
||||||
JIBRI_XORG_CONF="/etc/jitsi/jibri/xorg-video-dummy.conf"
|
JIBRI_XORG_CONF="/etc/jitsi/jibri/xorg-video-dummy.conf"
|
||||||
WS_MATCH1="# ensure all static content can always be found first"
|
WS_MATCH1="# ensure all static content can always be found first"
|
||||||
|
WS_MATCH2="external_api.js"
|
||||||
MEET_MATCH1="disable simulcast support."
|
MEET_MATCH1="disable simulcast support."
|
||||||
#GC_SDK_REL_FILE="http://packages.cloud.google.com/apt/dists/cloud-sdk-$(lsb_release -sc)/Release"
|
export DOMAIN
|
||||||
|
|
||||||
# Make sure we can rely on the match strings.
|
# Make sure we can rely on the match strings.
|
||||||
printf "> Testing match strings on config files.\n"
|
printf "> Testing match strings on config files.\n"
|
||||||
test_match "$WS_MATCH1" "$WS_CONF"
|
test_match "$WS_MATCH1" "$WS_CONF"
|
||||||
|
test_match "$WS_MATCH2" "$WS_CONF"
|
||||||
test_match "$MEET_MATCH1" "$MEET_CONF"
|
test_match "$MEET_MATCH1" "$MEET_CONF"
|
||||||
|
|
||||||
# Rename hostname for jitsi server
|
# Rename hostname for jitsi server
|
||||||
|
@ -567,18 +568,6 @@ do
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
sleep .1
|
sleep .1
|
||||||
#Language
|
|
||||||
echo "## Setting up Jitsi Meet language ##
|
|
||||||
You can define the language, for a complete list of the supported languages
|
|
||||||
|
|
||||||
See here:
|
|
||||||
https://github.com/jitsi/jitsi-meet/blob/master/lang/languages.json"
|
|
||||||
printf "Jitsi Meet web interface will be set to use such language.\n\n"
|
|
||||||
sleep .1
|
|
||||||
read -p "Please set your language (Press enter to default to 'en'):$NL" -r JB_LANG
|
|
||||||
sleep .1
|
|
||||||
printf "\nWe'll take a minute to localize some UI excerpts if you need.\n\n"
|
|
||||||
sleep .1
|
|
||||||
#Participant
|
#Participant
|
||||||
printf "> Do you want to translate 'Participant' to your own language?\n"
|
printf "> Do you want to translate 'Participant' to your own language?\n"
|
||||||
sleep .1
|
sleep .1
|
||||||
|
@ -711,24 +700,16 @@ do
|
||||||
done
|
done
|
||||||
sleep .1
|
sleep .1
|
||||||
##Jigasi
|
##Jigasi
|
||||||
#if [ "$(curl -s -o /dev/null -w "%{http_code}" "$GC_SDK_REL_FILE" )" == "404" ]; then
|
while [ "$ENABLE_TRANSCRIPT" != "yes" ] && [ "$ENABLE_TRANSCRIPT" != "no" ]
|
||||||
#printf "> Sorry Google SDK doesn't have support yet for %s,
|
do
|
||||||
#thus, Jigasi Transcript can't be enable.\n\n" "$(lsb_release -sd)"
|
read -p "> Do you want to setup Jigasi Transcription: (yes or no)
|
||||||
#elif [ "$(curl -s -o /dev/null -w "%{http_code}" "$GC_SDK_REL_FILE" )" == "200" ]; then
|
|
||||||
#while [ "$ENABLE_TRANSCRIPT" != "yes" ] && [ "$ENABLE_TRANSCRIPT" != "no" ]
|
|
||||||
#do
|
|
||||||
#read -p "> Do you want to setup Jigasi Transcription: (yes or no)
|
|
||||||
#( Please check requirements at: https://forge.switnet.net/switnet/quick-jibri-installer )$NL" -r ENABLE_TRANSCRIPT
|
#( Please check requirements at: https://forge.switnet.net/switnet/quick-jibri-installer )$NL" -r ENABLE_TRANSCRIPT
|
||||||
#if [ "$ENABLE_TRANSCRIPT" = "no" ]; then
|
if [ "$ENABLE_TRANSCRIPT" = "no" ]; then
|
||||||
#printf " - Jigasi Transcription won't be enabled.\n\n"
|
printf " - Jigasi Transcription won't be enabled.\n\n"
|
||||||
#elif [ "$ENABLE_TRANSCRIPT" = "yes" ]; then
|
elif [ "$ENABLE_TRANSCRIPT" = "yes" ]; then
|
||||||
#printf " - Jigasi Transcription will be enabled.\n\n"
|
printf " - Jigasi Transcription will be enabled.\n\n"
|
||||||
#fi
|
fi
|
||||||
#done
|
done
|
||||||
#else
|
|
||||||
#echo "No valid option for Jigasi. Please report this to
|
|
||||||
#https://forge.switnet.net/switnet/quick-jibri-installer/issues"
|
|
||||||
#fi
|
|
||||||
sleep .1
|
sleep .1
|
||||||
#Grafana
|
#Grafana
|
||||||
while [ "$ENABLE_GRAFANA_DSH" != "yes" ] && [ "$ENABLE_GRAFANA_DSH" != "no" ]
|
while [ "$ENABLE_GRAFANA_DSH" != "yes" ] && [ "$ENABLE_GRAFANA_DSH" != "no" ]
|
||||||
|
@ -872,23 +853,17 @@ BREWERY
|
||||||
|
|
||||||
# Jibri tweaks for /etc/jitsi/meet/$DOMAIN-config.js
|
# Jibri tweaks for /etc/jitsi/meet/$DOMAIN-config.js
|
||||||
sed -i "s|conference.$DOMAIN|internal.auth.$DOMAIN|" "$MEET_CONF"
|
sed -i "s|conference.$DOMAIN|internal.auth.$DOMAIN|" "$MEET_CONF"
|
||||||
#New recording implementation.
|
|
||||||
sed -i "s|// recordingService:|recordingService:|" "$MEET_CONF"
|
|
||||||
sed -i "/recordingService/,/hideStorageWarning/s|// enabled: false,| enabled: true,|" "$MEET_CONF"
|
|
||||||
sed -i "/hideStorageWarning: false/,/Local recording configuration/s|// },|},|" "$MEET_CONF"
|
|
||||||
sed -i "s|// liveStreamingEnabled: false,|liveStreamingEnabled: true,\\
|
|
||||||
\\
|
|
||||||
hiddenDomain: \'recorder.$DOMAIN\',|" "$MEET_CONF"
|
|
||||||
|
|
||||||
#Setup main language
|
#Enable recording & livestreaming by default.
|
||||||
if [ -z "$JB_LANG" ] || [ "$JB_LANG" = "en" ]; then
|
echo "> Patching config.js to enable recording and livestreaming by default..."
|
||||||
echo "Leaving English (en) as default language..."
|
echo " Read more about patches at the patches folder."
|
||||||
sed -i "s|// defaultLanguage: 'en',|defaultLanguage: 'en',|" "$MEET_CONF"
|
envsubst < \
|
||||||
else
|
patches/jitsi-meet/001-jitsi-meet-enable-livestreaming-and-recording.patch | \
|
||||||
echo "Changing default language to: $JB_LANG"
|
patch --no-backup-if-mismatch -d / -p1
|
||||||
sed -i "s|// defaultLanguage: 'en',|defaultLanguage: \'$JB_LANG\',|" "$MEET_CONF"
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
#Prepare hidden domain for jibri/jigasi silent users.
|
||||||
|
sed -i "/fileRecordingsServiceEnabled: false,/a \\
|
||||||
|
hiddenDomain: \'recorder.$DOMAIN\'," "$MEET_CONF"
|
||||||
# Recording directory
|
# Recording directory
|
||||||
if [ ! -d "$DIR_RECORD" ]; then
|
if [ ! -d "$DIR_RECORD" ]; then
|
||||||
mkdir "$DIR_RECORD"
|
mkdir "$DIR_RECORD"
|
||||||
|
@ -907,8 +882,8 @@ echo "or storage provider, etc.) in this script" >> /tmp/finalize.out
|
||||||
|
|
||||||
chmod -R 770 \$RECORDINGS_DIR
|
chmod -R 770 \$RECORDINGS_DIR
|
||||||
|
|
||||||
LJF_PATH="\$(find \$RECORDINGS_DIR -exec stat --printf="%Y\t%n\n" {} \; | sort -n -r|awk '{print\$2}'| grep -v "meta\|-" | head -n1)"
|
LJF_PATH="\$(find \$RECORDINGS_DIR -exec stat --printf="%Y\t%n\n" {} \; | sort -nr|sed 1d|awk '{print\$2}'| grep -v "meta\|_" | head -n1)"
|
||||||
NJF_NAME="\$(find \$LJF_PATH |grep -e "-"|sed "s|\$LJF_PATH/||"|cut -d "." -f1)"
|
NJF_NAME="\$(find \$LJF_PATH |grep "mp4"|sed "s|\$LJF_PATH/||"|cut -d "." -f1)"
|
||||||
NJF_PATH="\$RECORDINGS_DIR/\$NJF_NAME"
|
NJF_PATH="\$RECORDINGS_DIR/\$NJF_NAME"
|
||||||
mv \$LJF_PATH \$NJF_PATH
|
mv \$LJF_PATH \$NJF_PATH
|
||||||
|
|
||||||
|
@ -919,117 +894,15 @@ chmod +x "$REC_DIR"
|
||||||
|
|
||||||
## New Jibri Config (2020)
|
## New Jibri Config (2020)
|
||||||
mv "$JIBRI_CONF" ${JIBRI_CONF}-dpkg-file
|
mv "$JIBRI_CONF" ${JIBRI_CONF}-dpkg-file
|
||||||
cat << NEW_CONF > "$JIBRI_CONF"
|
cp files/jibri.conf "$JIBRI_CONF"
|
||||||
// New XMPP environment config.
|
sed -i "s|JIBRI_RES_CONF|$JIBRI_RES_CONF|g" "$JIBRI_CONF"
|
||||||
jibri {
|
sed -i "s|DIR_RECORD|$DIR_RECORD|g" "$JIBRI_CONF"
|
||||||
streaming {
|
sed -i "s|REC_DIR|$REC_DIR|g" "$JIBRI_CONF"
|
||||||
// A list of regex patterns for allowed RTMP URLs. The RTMP URL used
|
sed -i "s|JB_NAME|$JB_NAME|g" "$JIBRI_CONF"
|
||||||
// when starting a stream must match at least one of the patterns in
|
sed -i "s|DOMAIN|$DOMAIN|g" "$JIBRI_CONF"
|
||||||
// this list.
|
sed -i "s|JibriBrewery|$JibriBrewery|g" "$JIBRI_CONF"
|
||||||
rtmp-allow-list = [
|
sed -i "s|JB_AUTH_PASS|$JB_AUTH_PASS|g" "$JIBRI_CONF"
|
||||||
// By default, all services are allowed
|
sed -i "s|JB_REC_PASS|$JB_REC_PASS|g" "$JIBRI_CONF"
|
||||||
".*"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
ffmpeg {
|
|
||||||
resolution = $JIBRI_RES_CONF
|
|
||||||
}
|
|
||||||
chrome {
|
|
||||||
// The flags which will be passed to chromium when launching
|
|
||||||
flags = [
|
|
||||||
"--use-fake-ui-for-media-stream",
|
|
||||||
"--start-maximized",
|
|
||||||
"--kiosk",
|
|
||||||
"--enabled",
|
|
||||||
"--disable-infobars",
|
|
||||||
"--autoplay-policy=no-user-gesture-required",
|
|
||||||
"--ignore-certificate-errors",
|
|
||||||
"--disable-dev-shm-usage"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
stats {
|
|
||||||
enable-stats-d = true
|
|
||||||
}
|
|
||||||
call-status-checks {
|
|
||||||
// If all clients have their audio and video muted and if Jibri does not
|
|
||||||
// detect any data stream (audio or video) comming in, it will stop
|
|
||||||
// recording after NO_MEDIA_TIMEOUT expires.
|
|
||||||
no-media-timeout = 30 seconds
|
|
||||||
|
|
||||||
// If all clients have their audio and video muted, Jibri consideres this
|
|
||||||
// as an empty call and stops the recording after ALL_MUTED_TIMEOUT expires.
|
|
||||||
all-muted-timeout = 10 minutes
|
|
||||||
|
|
||||||
// When detecting if a call is empty, Jibri takes into consideration for how
|
|
||||||
// long the call has been empty already. If it has been empty for more than
|
|
||||||
// DEFAULT_CALL_EMPTY_TIMEOUT, it will consider it empty and stop the recording.
|
|
||||||
default-call-empty-timeout = 30 seconds
|
|
||||||
}
|
|
||||||
recording {
|
|
||||||
recordings-directory = "$DIR_RECORD"
|
|
||||||
finalize-script = "$REC_DIR"
|
|
||||||
}
|
|
||||||
api {
|
|
||||||
xmpp {
|
|
||||||
environments = [
|
|
||||||
{
|
|
||||||
// A user-friendly name for this environment
|
|
||||||
name = "$JB_NAME"
|
|
||||||
|
|
||||||
// A list of XMPP server hosts to which we'll connect
|
|
||||||
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
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
NEW_CONF
|
|
||||||
|
|
||||||
#Jibri xorg resolution
|
#Jibri xorg resolution
|
||||||
sed -i "s|[[:space:]]Virtual .*|Virtual $JIBRI_RES_XORG_CONF|" "$JIBRI_XORG_CONF"
|
sed -i "s|[[:space:]]Virtual .*|Virtual $JIBRI_RES_XORG_CONF|" "$JIBRI_XORG_CONF"
|
||||||
|
@ -1104,28 +977,6 @@ sed -i "s|MJS_USER=.*|MJS_USER=\"$MJS_USER\"|" add-jvb2-node.sh
|
||||||
sed -i "s|MJS_USER_PASS=.*|MJS_USER_PASS=\"$MJS_USER_PASS\"|" add-jvb2-node.sh
|
sed -i "s|MJS_USER_PASS=.*|MJS_USER_PASS=\"$MJS_USER_PASS\"|" add-jvb2-node.sh
|
||||||
##--
|
##--
|
||||||
|
|
||||||
#Tune webserver for Jitsi App control
|
|
||||||
if [ -f "$WS_CONF" ]; then
|
|
||||||
sed -i "/$WS_MATCH1/i \\\n" "$WS_CONF"
|
|
||||||
sed -i "/$WS_MATCH1/i \ \ \ \ location = \/external_api.min.js {" "$WS_CONF"
|
|
||||||
sed -i "/$WS_MATCH1/i \ \ \ \ \ \ \ \ alias \/usr\/share\/jitsi-meet\/libs\/external_api.min.js;" "$WS_CONF"
|
|
||||||
sed -i "/$WS_MATCH1/i \ \ \ \ }" "$WS_CONF"
|
|
||||||
sed -i "/$WS_MATCH1/i \\\n" "$WS_CONF"
|
|
||||||
systemctl reload nginx
|
|
||||||
else
|
|
||||||
echo "No app configuration done to server file, please report to:"
|
|
||||||
echo " -> https://forge.switnet.net/switnet/quick-jibri-installer/issues"
|
|
||||||
fi
|
|
||||||
#Static avatar
|
|
||||||
if [ "$ENABLE_SA" = "yes" ] && [ -f "$WS_CONF" ]; then
|
|
||||||
cp images/avatar2.png /usr/share/jitsi-meet/images/
|
|
||||||
sed -i "/location \/external_api.min.js/i \ \ \ \ location \~ \^\/avatar\/\(.\*\)\\\.png {" "$WS_CONF"
|
|
||||||
sed -i "/location \/external_api.min.js/i \ \ \ \ \ \ \ \ alias /usr/share/jitsi-meet/images/avatar2.png;" "$WS_CONF"
|
|
||||||
sed -i "/location \/external_api.min.js/i \ \ \ \ }\\
|
|
||||||
\ " "$WS_CONF"
|
|
||||||
sed -i "/RANDOM_AVATAR_URL_PREFIX/ s|false|\'https://$DOMAIN/avatar/\'|" "$INT_CONF"
|
|
||||||
sed -i "/RANDOM_AVATAR_URL_SUFFIX/ s|false|\'.png\'|" "$INT_CONF"
|
|
||||||
fi
|
|
||||||
#nginx -tlsv1/1.1
|
#nginx -tlsv1/1.1
|
||||||
if [ "$DROP_TLS1" = "yes" ];then
|
if [ "$DROP_TLS1" = "yes" ];then
|
||||||
printf "\nDropping TLSv1/1.1\n\n"
|
printf "\nDropping TLSv1/1.1\n\n"
|
||||||
|
@ -1193,20 +1044,23 @@ fi
|
||||||
sed -i "s|// startWithVideoMuted: false,|startWithVideoMuted: true,|" "$MEET_CONF"
|
sed -i "s|// startWithVideoMuted: false,|startWithVideoMuted: true,|" "$MEET_CONF"
|
||||||
|
|
||||||
#Start with audio muted but admin
|
#Start with audio muted but admin
|
||||||
sed -i "s|// startAudioMuted: 10,|startAudioMuted: 1,|" "$MEET_CONF"
|
sed -i "s|// startAudioMuted: 10,|startAudioMuted: 2,|" "$MEET_CONF"
|
||||||
|
|
||||||
#Disable/enable welcome page
|
#Disable/enable welcome page
|
||||||
if [ "$ENABLE_WELCP" = "yes" ]; then
|
[ "$ENABLE_WELCP" = "yes" ] && ENABLE_WELCP_BOL=true
|
||||||
sed -i "s|.*enableWelcomePage:.*| enableWelcomePage: false,|" "$MEET_CONF"
|
[ "$ENABLE_WELCP" = "no" ] && ENABLE_WELCP_BOL=false
|
||||||
elif [ "$ENABLE_WELCP" = "no" ]; then
|
export ENABLE_WELCP_BOL
|
||||||
sed -i "s|.*enableWelcomePage:.*| enableWelcomePage: true,|" "$MEET_CONF"
|
echo "> Patching config.js to modify welcompage behavior..."
|
||||||
fi
|
echo " Read more about patches at the patches folder."
|
||||||
|
envsubst < \
|
||||||
|
patches/jitsi-meet/002-jitsi-meet-welcome-page-on-off.patch | \
|
||||||
|
patch --no-backup-if-mismatch -d / -p1
|
||||||
|
|
||||||
#Enable close page
|
#Enable close page
|
||||||
if [ "$ENABLE_CLOCP" = "yes" ]; then
|
[ "$ENABLE_CLOCP" = "yes" ] && \
|
||||||
sed -i "s|.*enableClosePage:.*| enableClosePage: true,|" "$MEET_CONF"
|
sed -i "s|// enableClosePage:.*|enableClosePage: true,|" "$MEET_CONF"
|
||||||
elif [ "$ENABLE_CLOCP" = "no" ]; then
|
[ "$ENABLE_CLOCP" = "no" ] && \
|
||||||
sed -i "s|.*enableClosePage:.*| enableClosePage: false,|" "$MEET_CONF"
|
sed -i "s|// enableClosePage:.*|enableClosePage: false,|" "$MEET_CONF"
|
||||||
fi
|
|
||||||
|
|
||||||
#Add pre-join screen by default, since it improves YouTube autoplay capabilities
|
#Add pre-join screen by default, since it improves YouTube autoplay capabilities
|
||||||
#pre-join screen by itself don't require autorization by moderator, don't confuse with lobby which does.
|
#pre-join screen by itself don't require autorization by moderator, don't confuse with lobby which does.
|
||||||
|
@ -1308,7 +1162,16 @@ if [ "$ENABLE_NC_ACCESS" = "yes" ]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
sleep .1
|
sleep .1
|
||||||
|
#Jigasi w/VOSK backend.
|
||||||
|
if [ "$ENABLE_TRANSCRIPT" = "yes" ]; then
|
||||||
|
printf "\nJigasi with VOSK backend will be enabled."
|
||||||
|
if [ "$MODE" = "debug" ]; then
|
||||||
|
bash "$PWD"/jigasi-vosk-backend.sh -m debug
|
||||||
|
else
|
||||||
|
bash "$PWD"/jigasi-vosk-backend.sh
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
sleep .1
|
||||||
#Grafana Dashboard
|
#Grafana Dashboard
|
||||||
if [ "$ENABLE_GRAFANA_DSH" = "yes" ]; then
|
if [ "$ENABLE_GRAFANA_DSH" = "yes" ]; then
|
||||||
printf "\nGrafana Dashboard will be enabled."
|
printf "\nGrafana Dashboard will be enabled."
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Automated AWS generic kernel setup for jibri.
|
# Automated AWS generic kernel setup for jibri.
|
||||||
# SwITNet Ltd © - 2023, https://switnet.net/
|
# SwITNet Ltd © - 2024, https://switnet.net/
|
||||||
# GPLv3 or later.
|
# GPLv3 or later.
|
||||||
|
|
||||||
while getopts m: option
|
while getopts m: option
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Simple Fail2ban configuration
|
# Simple Fail2ban configuration
|
||||||
# SwITNet Ltd © - 2023, https://switnet.net/
|
# SwITNet Ltd © - 2024, https://switnet.net/
|
||||||
# GNU GPLv3 or later.
|
# GNU GPLv3 or later.
|
||||||
|
|
||||||
while getopts m: option
|
while getopts m: option
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Simple Jibri conf updater
|
# Simple Jibri conf updater
|
||||||
# SwITNet Ltd © - 2023, https://switnet.net/
|
# SwITNet Ltd © - 2024, https://switnet.net/
|
||||||
# GNU GPLv3 or later.
|
# GNU GPLv3 or later.
|
||||||
|
|
||||||
while getopts m: option
|
while getopts m: option
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Simple Jibri resolution enhancer
|
# Simple Jibri resolution enhancer
|
||||||
# SwITNet Ltd © - 2023, https://switnet.net/
|
# SwITNet Ltd © - 2024, https://switnet.net/
|
||||||
# GNU GPLv3 or later.
|
# GNU GPLv3 or later.
|
||||||
|
|
||||||
while getopts m: option
|
while getopts m: option
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#Start over
|
#Start over
|
||||||
# SwITNet Ltd © - 2023, https://switnet.net/
|
# SwITNet Ltd © - 2024, https://switnet.net/
|
||||||
# GPLv3 or later.
|
# GPLv3 or later.
|
||||||
|
|
||||||
while getopts m: option
|
while getopts m: option
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Simple Jibri Env tester
|
# Simple Jibri Env tester
|
||||||
# SwITNet Ltd © - 2023, https://switnet.net/
|
# SwITNet Ltd © - 2024, https://switnet.net/
|
||||||
# GNU GPLv3 or later.
|
# GNU GPLv3 or later.
|
||||||
|
|
||||||
while getopts m: option
|
while getopts m: option
|
||||||
|
|
Loading…
Reference in New Issue