Created
January 11, 2021 19:20
-
-
Save mertcb/3bd75348d3eb2071af2a06d710f6ebbb to your computer and use it in GitHub Desktop.
Create Jitsi Server in one command
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ENTER YOUR CUSTOM VALUES HERE | |
HOSTNAME="subdomain.example.com" | |
EMAIL="info@example.com" | |
# set hostname | |
hostnamectl set-hostname $HOSTNAME | |
echo -e "127.0.0.1 localhost $HOSTNAME" >> /etc/hosts | |
# add Jitsi to sources | |
wget -qO - https://download.jitsi.org/jitsi-key.gpg.key | sudo apt-key add - | |
sh -c "echo 'deb https://download.jitsi.org stable/' > /etc/apt/sources.list.d/jitsi-stable.list" | |
apt update | |
echo -e "DefaultLimitNOFILE=65000\nDefaultLimitNPROC=65000\nDefaultTasksMax=65000" >> /etc/systemd/system.conf | |
systemctl daemon-reload | |
# Configure Jits install | |
debconf-set-selections <<< $(echo 'jitsi-videobridge jitsi-videobridge/jvb-hostname string '$HOSTNAME) | |
debconf-set-selections <<< 'jitsi-meet-web-config jitsi-meet/cert-choice select "Generate a new self-signed certificate"'; | |
# Install Jitsi | |
apt install -y jitsi-meet | |
# set up letsencrypt | |
echo $EMAIL | /usr/share/jitsi-meet/scripts/install-letsencrypt-cert.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment