No https on onion only install of peertube

This commit is contained in:
Bob Mottram 2017-11-29 20:57:18 +00:00
parent f91d309e1f
commit 30f7875e59
1 changed files with 2 additions and 1 deletions

View File

@ -426,11 +426,12 @@ function peertube_create_config {
echo '' >> $peertube_config_file echo '' >> $peertube_config_file
echo '# Correspond to your reverse proxy "listen" configuration' >> $peertube_config_file echo '# Correspond to your reverse proxy "listen" configuration' >> $peertube_config_file
echo 'webserver:' >> $peertube_config_file echo 'webserver:' >> $peertube_config_file
echo ' https: true' >> $peertube_config_file
if [[ $ONION_ONLY == 'no' ]]; then if [[ $ONION_ONLY == 'no' ]]; then
echo ' https: true' >> $peertube_config_file
echo " hostname: '$PEERTUBE_DOMAIN_NAME'" >> $peertube_config_file echo " hostname: '$PEERTUBE_DOMAIN_NAME'" >> $peertube_config_file
echo ' port: 443' >> $peertube_config_file echo ' port: 443' >> $peertube_config_file
else else
echo ' https: false' >> $peertube_config_file
echo " hostname: '$PEERTUBE_ONION_HOSTNAME'" >> $peertube_config_file echo " hostname: '$PEERTUBE_ONION_HOSTNAME'" >> $peertube_config_file
echo ' port: 80' >> $peertube_config_file echo ' port: 80' >> $peertube_config_file
fi fi