Quellcode durchsuchen

No https on onion only install of peertube

Bob Mottram vor 7 Jahren
Ursprung
Commit
30f7875e59
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  1. 2
    1
      src/freedombone-app-peertube

+ 2
- 1
src/freedombone-app-peertube Datei anzeigen

426
     echo '' >> $peertube_config_file
426
     echo '' >> $peertube_config_file
427
     echo '# Correspond to your reverse proxy "listen" configuration' >> $peertube_config_file
427
     echo '# Correspond to your reverse proxy "listen" configuration' >> $peertube_config_file
428
     echo 'webserver:' >> $peertube_config_file
428
     echo 'webserver:' >> $peertube_config_file
429
-    echo '  https: true' >> $peertube_config_file
430
     if [[ $ONION_ONLY == 'no' ]]; then
429
     if [[ $ONION_ONLY == 'no' ]]; then
430
+        echo '  https: true' >> $peertube_config_file
431
         echo "  hostname: '$PEERTUBE_DOMAIN_NAME'" >> $peertube_config_file
431
         echo "  hostname: '$PEERTUBE_DOMAIN_NAME'" >> $peertube_config_file
432
         echo '  port: 443' >> $peertube_config_file
432
         echo '  port: 443' >> $peertube_config_file
433
     else
433
     else
434
+        echo '  https: false' >> $peertube_config_file
434
         echo "  hostname: '$PEERTUBE_ONION_HOSTNAME'" >> $peertube_config_file
435
         echo "  hostname: '$PEERTUBE_ONION_HOSTNAME'" >> $peertube_config_file
435
         echo '  port: 80' >> $peertube_config_file
436
         echo '  port: 80' >> $peertube_config_file
436
     fi
437
     fi