Skip to content

Commit

Permalink
Jitsi Tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
rockhopsoft committed Jan 25, 2021
1 parent 563ad99 commit d3dbe6f
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 31 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,9 @@ src/homestead/.DS_Store
src/.DS_Store
src/ubuntu20/.DS_Store
src/.DS_Store
src/.DS_Store
src/ubuntu20/survloop/.DS_Store
src/ubuntu20/.DS_Store
src/ubuntu20/survloop/.DS_Store
src/.DS_Store
src/ubuntu20/.DS_Store
Binary file modified src/.DS_Store
Binary file not shown.
Binary file modified src/ubuntu20/.DS_Store
Binary file not shown.
2 changes: 2 additions & 0 deletions src/ubuntu20/create-super-user.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ echo ''
echo 'Ubuntu 20.04 Super User Initiation Settings'
echo '-------------------------------------------'
echo "User or VPN IP Address: $IP"
echo "Custom SSH Port: $PORT"
echo "Suer User Name: $USR"
echo "YubiKey Token: $YUBI"
echo '==========================================='
Expand All @@ -49,6 +50,7 @@ if [ "$DEBUG" = "y" ]
then
set -x
fi
apt-add-repository universe
apt update
echo "Y" | apt upgrade
adduser $USR
Expand Down
46 changes: 15 additions & 31 deletions src/ubuntu20/jitsi-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,37 +7,9 @@ EMAIL="$3"

# To be run under sudo su...

apt-add-repository universe
apt-get update
apt-get upgrade

sed -i 's/#net.ipv4.conf.default.rp_filter=1/net.ipv4.conf.default.rp_filter=1/g' /etc/sysctl.conf
sed -i 's/#net.ipv4.conf.all.rp_filter=1/net.ipv4.conf.all.rp_filter=1/g' /etc/sysctl.conf
sed -i 's/#net.ipv4.conf.all.accept_redirects = 0/net.ipv4.conf.all.accept_redirects = 0/g' /etc/sysctl.conf
sed -i 's/#net.ipv6.conf.all.accept_redirects = 0/net.ipv6.conf.all.accept_redirects = 0/g' /etc/sysctl.conf
sed -i 's/#net.ipv4.conf.all.send_redirects = 0/net.ipv4.conf.all.send_redirects = 0/g' /etc/sysctl.conf
sed -i 's/#net.ipv4.conf.all.accept_source_route = 0/net.ipv4.conf.all.accept_source_route = 0/g' /etc/sysctl.conf
sed -i 's/#net.ipv6.conf.all.accept_source_route = 0/net.ipv6.conf.all.accept_source_route = 0/g' /etc/sysctl.conf
sed -i 's/#net.ipv4.conf.all.log_martians = 1/net.ipv4.conf.all.log_martians = 1/g' /etc/sysctl.conf
sysctl -p

echo "Y" | apt install fail2ban
systemctl start fail2ban
systemctl enable fail2ban
cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local
sed -i "s/#ignoreip = 127.0.0.1\/8 ::1/ignoreip = $IP/g" /etc/fail2ban/jail.local
sed -i 's/bantime = 10m/bantime = 30m/g' /etc/fail2ban/jail.local
sed -i 's/maxretry = 5/maxretry = 3/g' /etc/fail2ban/jail.local
sed -i 's/enabled = false/enabled = true/g' /etc/fail2ban/jail.local
systemctl enable fail2ban
systemctl status fail2ban.service
fail2ban-client status sshd



# https://www.vultr.com/docs/install-jitsi-meet-on-ubuntu-20-04-lts

apt-get install gnupg2 apt-transport-https
echo "Y" | apt-get install gnupg2 apt-transport-https nginx-full
apt-get update
apt-get upgrade

Expand All @@ -62,8 +34,20 @@ echo "deb https://download.jitsi.org stable/" | sudo tee -a /etc/apt/sources.li
apt update
apt install -y jitsi-meet

/usr/share/jitsi-meet/scripts/install-letsencrypt-cert.sh

hostnamectl set-hostname $DOMAIN
echo "127.0.0.1 $DOMAIN" >> /etc/hosts
systemctl reload nginx

echo ''
echo '=================================='
echo ''
read -p $'Do you want to install a Let\'s Encrypt SSL certificate now?\n(y or n)\n' SSL
if [ "$SSL" = "y" ]
then
/usr/share/jitsi-meet/scripts/install-letsencrypt-cert.sh
fi





Binary file modified src/ubuntu20/survloop/.DS_Store
Binary file not shown.

0 comments on commit d3dbe6f

Please sign in to comment.