Inital commit
This commit is contained in:
22
JVB/conf.sh
Normal file
22
JVB/conf.sh
Normal file
@@ -0,0 +1,22 @@
|
||||
#module setup
|
||||
mrepo=https://git.ictmaatwerk.com/VPS-scripts/MeetServer
|
||||
mbranch=main/JVB
|
||||
|
||||
#config ssh
|
||||
sed -i -e '/Port 22/c\Port 4242' -e 's/PermitRootLogin yes/PermitRootLogin prohibit-password/g' /etc/ssh/sshd_config
|
||||
systemctl restart sshd > $OUTPUT 2>&1
|
||||
|
||||
##config ufw
|
||||
ufw limit 4242/tcp > $OUTPUT 2>&1
|
||||
ufw allow 443/tcp > $OUTPUT 2>&1
|
||||
ufw allow 10000/udp > $OUTPUT 2>&1
|
||||
echo "y" | ufw enable > $OUTPUT 2>&1
|
||||
|
||||
##config dns
|
||||
mv /etc/resolve.conf /etc/resolve.conf.bck
|
||||
echo "nameserver $intip" > /etc/resolve.conf
|
||||
|
||||
##config jitsi
|
||||
systemctl stop jitsi-videobridge2 > $OUTPUT 2>&1
|
||||
sed -i "/org.jitsi.videobridge.xmpp.user.shard.HOSTNAME=/c\org.jitsi.videobridge.xmpp.user.shard.HOSTNAME=$domain" /etc/jitsi/videobridge/sip-communicator.properties
|
||||
systemctl enable --now jitsi-videobridge2 > $OUTPUT 2>&1
|
||||
1
JVB/generic.pkg.list
Normal file
1
JVB/generic.pkg.list
Normal file
@@ -0,0 +1 @@
|
||||
jitsi-videobridge2 ufw
|
||||
10
JVB/preconf.sh
Normal file
10
JVB/preconf.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
#module setup
|
||||
mrepo=https://git.ictmaatwerk.com/VPS-scripts/MeetServer
|
||||
mbranch=main/JVB
|
||||
|
||||
#setup repo
|
||||
curl --retry 7 --retry-delay 5 -s https://git.ictmaatwerk.com/VPS-scripts/General/raw/branch/Main/Setup-Repo.sh |repo=jitsi osrel=$shortdist bash > $OUTPUT 2>&1
|
||||
|
||||
#preconf jitsi
|
||||
debconf-set-selections <<< "jitsi-videobridge2 jitsi-videobridge/jvb-hostname string $domain"
|
||||
debconf-set-selections <<< "jitsi-meet-prosody jitsi-videobridge/jvbsecret password $jvbsec"
|
||||
Reference in New Issue
Block a user