Skip to content
Snippets Groups Projects
Commit 8b3d367a authored by Ruben Rodriguez's avatar Ruben Rodriguez
Browse files

Generalize hostname

parent 47047bed
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,8 @@
# This script has been tested on Trisquel 8
HOSTNAME=bbb.foo.bar
# Basic setup
apt-get install --no-install-recommends language-pack-en certbot wget equivs apt-transport-https software-properties-common python3-certbot-nginx apache2-utils
......@@ -65,15 +67,15 @@ sed 's|.*node main.js|PORT=3000 /usr/bin/node main.js|' -i /usr/share/meteor/bun
###### Configure SSL
certbot --webroot -w /var/www/bigbluebutton-default/ -m sysadmin@gnu.org certonly --agree-tos -d classroom.fsf.org -n
certbot --webroot -w /var/www/bigbluebutton-default/ -m sysadmin@$HOSTNAME certonly --agree-tos -d $HOSTNAME -n
cat << EOF |sed '/server_name.*$/ r /dev/stdin' -i /etc/nginx/sites-available/bigbluebutton
listen 443 ssl;
listen [::]:443 ssl;
ssl_certificate /etc/letsencrypt/live/classroom.fsf.org/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/classroom.fsf.org/privkey.pem;
ssl_certificate /etc/letsencrypt/live/$HOSTNAME/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/$HOSTNAME/privkey.pem;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
......@@ -97,7 +99,7 @@ sed 's/JoinViaHTML5Client=false/JoinViaHTML5Client=true/' -i /usr/share/bbb-web/
# Fix integration issue with Canvas
sed 's/5,6/5,20/' -i /opt/freeswitch/conf/dialplan/default/bbb_echo_test.xml /opt/freeswitch/conf/dialplan/default/bbb_conference.xml
bbb-conf --setip classroom.fsf.org
bbb-conf --setip $HOSTNAME
service nginx restart
apt-get install ufw
......@@ -116,7 +118,7 @@ htpasswd -c /etc/nginx/htpasswd username
cat << EOF |sed '/fastcgi_params;$/ r /dev/stdin' -i /etc/bigbluebutton/nginx/demo.nginx
auth_basic "Private server. Contact sysadmin@fsf.org if you need a BigBlueButton instance for your classroom";
auth_basic "Private server. Contact sysadmin@$HOSTNAME if you need a BigBlueButton instance for your classroom";
auth_basic_user_file /etc/nginx/htpasswd;
EOF
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment