From 30f7875e590f6cbfbc8f1c9aa5dff6264b52b16b Mon Sep 17 00:00:00 2001 From: Bob Mottram <bob@freedombone.net> Date: Wed, 29 Nov 2017 20:57:18 +0000 Subject: [PATCH] No https on onion only install of peertube --- src/freedombone-app-peertube | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/freedombone-app-peertube b/src/freedombone-app-peertube index fce860a8..52ddfa3d 100755 --- a/src/freedombone-app-peertube +++ b/src/freedombone-app-peertube @@ -426,11 +426,12 @@ function peertube_create_config { echo '' >> $peertube_config_file echo '# Correspond to your reverse proxy "listen" configuration' >> $peertube_config_file echo 'webserver:' >> $peertube_config_file - echo ' https: true' >> $peertube_config_file if [[ $ONION_ONLY == 'no' ]]; then + echo ' https: true' >> $peertube_config_file echo " hostname: '$PEERTUBE_DOMAIN_NAME'" >> $peertube_config_file echo ' port: 443' >> $peertube_config_file else + echo ' https: false' >> $peertube_config_file echo " hostname: '$PEERTUBE_ONION_HOSTNAME'" >> $peertube_config_file echo ' port: 80' >> $peertube_config_file fi