ソースを参照

No https on onion only install of peertube

Bob Mottram 7 年 前
コミット
30f7875e59
共有1 個のファイルを変更した2 個の追加1 個の削除を含む
  1. 2
    1
      src/freedombone-app-peertube

+ 2
- 1
src/freedombone-app-peertube ファイルの表示

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