From 7c6c718eb3db2b0f5ee4b0e6ac548a8e4306dbae Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 14 Nov 2016 21:10:37 +0000 Subject: [PATCH] Use onion address --- src/freedombone-app-lychee | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/freedombone-app-lychee b/src/freedombone-app-lychee index c22cb94b..547a48a3 100755 --- a/src/freedombone-app-lychee +++ b/src/freedombone-app-lychee @@ -304,11 +304,7 @@ function install_lychee_website_onion { echo 'server {' >> /etc/nginx/sites-available/$LYCHEE_DOMAIN_NAME echo " listen 127.0.0.1:${LYCHEE_ONION_PORT} default_server;" >> /etc/nginx/sites-available/$LYCHEE_DOMAIN_NAME echo " root /var/www/$LYCHEE_DOMAIN_NAME/htdocs;" >> /etc/nginx/sites-available/$LYCHEE_DOMAIN_NAME - if [[ $ONION_ONLY == 'no' ]]; then - echo " server_name $LYCHEE_DOMAIN_NAME;" >> /etc/nginx/sites-available/$LYCHEE_DOMAIN_NAME - else - echo " server_name $LYCHEE_ONION_HOSTNAME;" >> /etc/nginx/sites-available/$LYCHEE_DOMAIN_NAME - fi + echo " server_name $LYCHEE_ONION_HOSTNAME;" >> /etc/nginx/sites-available/$LYCHEE_DOMAIN_NAME echo ' access_log /dev/null;' >> /etc/nginx/sites-available/$LYCHEE_DOMAIN_NAME echo " error_log /var/log/nginx/${LYCHEE_DOMAIN_NAME}_error_ssl.log $WEBSERVER_LOG_LEVEL;" >> /etc/nginx/sites-available/$LYCHEE_DOMAIN_NAME echo ' index index.html;' >> /etc/nginx/sites-available/$LYCHEE_DOMAIN_NAME