This commit is contained in:
Bob Mottram 2016-11-10 13:06:49 +00:00
parent f9f12c9787
commit cb97f1b0b3
1 changed files with 2 additions and 3 deletions

View File

@ -251,8 +251,8 @@ function install_jitsi {
apt-get -yq install jitsi-meet jitsi-meet-prosody
jitsi_nginx_site=/etc/nginx/sites-available/${JITSI_DOMAIN_NAME}.conf
echo 'server_names_hash_bucket_size 64;' > $jitsi_nginx_site
if [[ $ONION_ONLY == "no" ]]; then
echo 'server_names_hash_bucket_size 64;' > $jitsi_nginx_site
echo '' >> $jitsi_nginx_site
echo 'server {' >> $jitsi_nginx_site
echo ' listen 80;' >> $jitsi_nginx_site
@ -300,9 +300,8 @@ function install_jitsi {
echo ' proxy_set_header Host $http_host;' >> $jitsi_nginx_site
echo ' }' >> $jitsi_nginx_site
echo '}' >> $jitsi_nginx_site
else
echo -n '' > $jitsi_nginx_site
fi
echo '' >> $jitsi_nginx_site
echo 'server {' >> $jitsi_nginx_site
echo " listen 127.0.0.1:$JITSI_ONION_PORT default_server;" >> $jitsi_nginx_site
if [[ $ONION_ONLY == 'no' ]]; then