瀏覽代碼

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,11 +426,12 @@ function peertube_create_config {
426 426
     echo '' >> $peertube_config_file
427 427
     echo '# Correspond to your reverse proxy "listen" configuration' >> $peertube_config_file
428 428
     echo 'webserver:' >> $peertube_config_file
429
-    echo '  https: true' >> $peertube_config_file
430 429
     if [[ $ONION_ONLY == 'no' ]]; then
430
+        echo '  https: true' >> $peertube_config_file
431 431
         echo "  hostname: '$PEERTUBE_DOMAIN_NAME'" >> $peertube_config_file
432 432
         echo '  port: 443' >> $peertube_config_file
433 433
     else
434
+        echo '  https: false' >> $peertube_config_file
434 435
         echo "  hostname: '$PEERTUBE_ONION_HOSTNAME'" >> $peertube_config_file
435 436
         echo '  port: 80' >> $peertube_config_file
436 437
     fi