23 lines
969 B
Bash
23 lines
969 B
Bash
#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/resolv.conf /etc/resolv.conf.bck > $OUTPUT 2>&1
|
|
echo "nameserver $intip" > /etc/resolv.conf
|
|
|
|
##config jitsi
|
|
systemctl stop jitsi-videobridge2 > $OUTPUT 2>&1
|
|
sed -i -e "/org.jitsi.videobridge.xmpp.user.shard.HOSTNAME=/c\org.jitsi.videobridge.xmpp.user.shard.HOSTNAME=$domain" -e "/org.jitsi.videobridge.xmpp.user.shard.PASSWORD=/c\org.jitsi.videobridge.xmpp.user.shard.PASSWORD=$jvbsec" /etc/jitsi/videobridge/sip-communicator.properties
|
|
systemctl enable jitsi-videobridge2 > $OUTPUT 2>&1
|
|
systemctl start jitsi-videobridge2 > $OUTPUT 2>&1 |