No https on onion only install of peertube
This commit is contained in:
parent
f91d309e1f
commit
30f7875e59
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue