From c01545a14fee074ee1fd86fccc6698fee40824d7 Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Thu, 5 Nov 2020 14:44:35 +0100 Subject: [PATCH] Added 'Full standalone' to 'Standalone' converter --- JMS-FSA>SA.sh | 31 +++++++++++++++++++++++++++++++ readme.md | 2 +- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 JMS-FSA>SA.sh diff --git a/JMS-FSA>SA.sh b/JMS-FSA>SA.sh new file mode 100644 index 0000000..bea761d --- /dev/null +++ b/JMS-FSA>SA.sh @@ -0,0 +1,31 @@ +################################ +# JitsiMeet - JMS_FSA > SA # +################################ +#Vars +repo=https://git.ictmaatwerk.com/VPS-scripts/MeetServer +branch=main/JMS +branchtype=branch +source /etc/ICTM/JitsiMeet.var + +#Menu +ip -4 addr list +read -p 'Enter full name of internal network interface: ' innetworkif +intip=$(ip -o -4 addr list "$innetworkif" | awk '{print $4}' | cut -d/ -f1) +declare -p intip | cut -d ' ' -f 3- >> /etc/ICTM/JitsiMeet.var + +#Firewall +apt install -y --no-install-recommends dnsmasq +ufw allow in on "$innetworkif" to any port 53 +ufw allow in on "$innetworkif" to any port 5222 +ufw reload + +#InternalDNS +systemctl stop dnsmasq +curl --retry 7 --retry-delay 5 -s "$mrepo"/raw/branch/"$mbranch"/conf/dnsmasq.conf -o /etc/dnsmasq.d/main.conf +sed -i -e 's/DOMAINname/'$domain'/g' -e 's/HOSTname/'${domain%%.*}'/g' -e 's/INTif/'$innetworkif'/g' -e 's/INTip/'$intip'/g' /etc/dnsmasq.d/main.conf +systemctl enable dnsmasq +systemctl start dnsmasq + +#UI Record Toggles +echo "sed -i -e '/fileRecordingsEnabled/c\fileRecordingsEnabled: true,' /etc/jitsi/meet/"$domain"-config.js" > /opt/EnableJitsiRecordButton.sh +echo "sed -i -e '/fileRecordingsEnabled/c\fileRecordingsEnabled: false,' /etc/jitsi/meet/"$domain"-config.js" > /opt/DisableJitsiRecordButton.sh \ No newline at end of file diff --git a/readme.md b/readme.md index 7383b05..0575906 100644 --- a/readme.md +++ b/readme.md @@ -55,7 +55,7 @@ JMS can be ran in difrent modes * Disable support external JVB/JIB hosts * Does not requires a internal network * Running a JIB (even locally) requires config changes - + * Can later be converted to Stand alone mode by using `JMS-FSA>SA.sh` ## JVB * A meeting is server bound