forked from switnet/quick-jibri-installer
Compare commits
No commits in common. "d38d87e505c143989e2be089752ffc476639fc68" and "ef6252ff9febc6593b8592f3b96836f747a4feb6" have entirely different histories.
d38d87e505
...
ef6252ff9f
|
@ -100,15 +100,13 @@ 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/jigasi-meet-config.patch file"
|
||||
envsubst < patches/jigasi/001-jigasi-meet-config.patch | \
|
||||
patch --no-backup-if-mismatch -d / -p1
|
||||
envsubst < patches/jigasi/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/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
|
||||
envsubst < patches/jigasi/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"
|
||||
|
|
|
@ -1,66 +0,0 @@
|
|||
# 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,
|
|
@ -1,31 +0,0 @@
|
|||
# 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: {
|
|
@ -546,7 +546,6 @@ JIBRI_XORG_CONF="/etc/jitsi/jibri/xorg-video-dummy.conf"
|
|||
WS_MATCH1="# ensure all static content can always be found first"
|
||||
WS_MATCH2="external_api.js"
|
||||
MEET_MATCH1="disable simulcast support."
|
||||
export DOMAIN
|
||||
|
||||
# Make sure we can rely on the match strings.
|
||||
printf "> Testing match strings on config files.\n"
|
||||
|
@ -854,16 +853,20 @@ BREWERY
|
|||
# Jibri tweaks for /etc/jitsi/meet/$DOMAIN-config.js
|
||||
sed -i "s|conference.$DOMAIN|internal.auth.$DOMAIN|" "$MEET_CONF"
|
||||
|
||||
#Enable recording & livestreaming by default.
|
||||
echo "> Patching config.js to enable recording and livestreaming by default..."
|
||||
echo " Read more about patches at the patches folder."
|
||||
envsubst < \
|
||||
patches/jitsi-meet/001-jitsi-meet-enable-livestreaming-and-recording.patch | \
|
||||
patch --no-backup-if-mismatch -d / -p1
|
||||
|
||||
#Enable recording by default.
|
||||
sed -i "s|// recordingService:|recordingService:|" "$MEET_CONF"
|
||||
sed -i "/recordingService/,/hideStorageWarning/s|// enabled: false,| enabled: true,|" "$MEET_CONF"
|
||||
sed -i "/hideStorageWarning: false/,/}/s|// },|},|" "$MEET_CONF"
|
||||
#Prepare hidden domain for jibri/jigasi silent users.
|
||||
sed -i "/fileRecordingsServiceEnabled: false,/a \\
|
||||
hiddenDomain: \'recorder.$DOMAIN\'," "$MEET_CONF"
|
||||
|
||||
#Enable livestreaming by default.
|
||||
sed -i "s|// liveStreaming:|liveStreaming:|" "$MEET_CONF"
|
||||
sed -i "/liveStreaming:/,/helpLink:/s|// enabled: false,| enabled: true,|" "$MEET_CONF"
|
||||
sed -i "s|// helpLink:| helpLink:|" "$MEET_CONF"
|
||||
sed -i "/helpLink:/,/}/s|// },|},|" "$MEET_CONF"
|
||||
|
||||
# Recording directory
|
||||
if [ ! -d "$DIR_RECORD" ]; then
|
||||
mkdir "$DIR_RECORD"
|
||||
|
@ -1044,23 +1047,22 @@ fi
|
|||
sed -i "s|// startWithVideoMuted: false,|startWithVideoMuted: true,|" "$MEET_CONF"
|
||||
|
||||
#Start with audio muted but admin
|
||||
sed -i "s|// startAudioMuted: 10,|startAudioMuted: 2,|" "$MEET_CONF"
|
||||
sed -i "s|// startAudioMuted: 10,|startAudioMuted: 1,|" "$MEET_CONF"
|
||||
|
||||
#Disable/enable welcome page
|
||||
[ "$ENABLE_WELCP" = "yes" ] && ENABLE_WELCP_BOL=true
|
||||
[ "$ENABLE_WELCP" = "no" ] && ENABLE_WELCP_BOL=false
|
||||
export ENABLE_WELCP_BOL
|
||||
echo "> Patching config.js to modify welcompage behavior..."
|
||||
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
|
||||
|
||||
if [ "$ENABLE_WELCP" = "yes" ]; then
|
||||
sed -i "/ welcomePage: {/,/},/s|// ||" "$MEET_CONF"
|
||||
sed -i "/ welcomePage: {/,/},/s|disabled: .*,|disabled: true,|" "$MEET_CONF"
|
||||
elif [ "$ENABLE_WELCP" = "no" ]; then
|
||||
sed -i "/ welcomePage: {/,/},/s|// ||" "$MEET_CONF"
|
||||
sed -i "/ welcomePage: {/,/},/s|disabled: .*,|disabled: false,|" "$MEET_CONF"
|
||||
fi
|
||||
#Enable close page
|
||||
[ "$ENABLE_CLOCP" = "yes" ] && \
|
||||
sed -i "s|// enableClosePage:.*|enableClosePage: true,|" "$MEET_CONF"
|
||||
[ "$ENABLE_CLOCP" = "no" ] && \
|
||||
sed -i "s|// enableClosePage:.*|enableClosePage: false,|" "$MEET_CONF"
|
||||
if [ "$ENABLE_CLOCP" = "yes" ]; then
|
||||
sed -i "s|.*enableClosePage:.*| enableClosePage: true,|" "$MEET_CONF"
|
||||
elif [ "$ENABLE_CLOCP" = "no" ]; then
|
||||
sed -i "s|.*enableClosePage:.*| enableClosePage: false,|" "$MEET_CONF"
|
||||
fi
|
||||
|
||||
#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.
|
||||
|
|
Loading…
Reference in New Issue