浏览代码

Fix web install

Bob Mottram 7 年前
父节点
当前提交
4209245e20
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3
    3
      src/freedombone-app-peertube

+ 3
- 3
src/freedombone-app-peertube 查看文件

316
         function_check nginx_disable_sniffing
316
         function_check nginx_disable_sniffing
317
         nginx_disable_sniffing $PEERTUBE_DOMAIN_NAME
317
         nginx_disable_sniffing $PEERTUBE_DOMAIN_NAME
318
 
318
 
319
-        echo '  add_header Strict-Transport-Security max-age=15768000;' >> $peertube_nginx_site
319
+        echo '  add_header Strict-Transport-Security max-age=15768000;' >> $peertube_nginx_file
320
         echo '' >> $peertube_nginx_file
320
         echo '' >> $peertube_nginx_file
321
         echo '  location / {' >> $peertube_nginx_file
321
         echo '  location / {' >> $peertube_nginx_file
322
         echo "    proxy_pass http://localhost:${PEERTUBE_PORT};" >> $peertube_nginx_file
322
         echo "    proxy_pass http://localhost:${PEERTUBE_PORT};" >> $peertube_nginx_file
366
     fi
366
     fi
367
     echo 'server {' >> $peertube_nginx_file
367
     echo 'server {' >> $peertube_nginx_file
368
     echo "  listen 127.0.0.1:$PEERTUBE_ONION_PORT default_server;" >> $peertube_nginx_file
368
     echo "  listen 127.0.0.1:$PEERTUBE_ONION_PORT default_server;" >> $peertube_nginx_file
369
-    echo "  server_name $PEERTUBE_ONION_HOSTNAME;" >> $eertube_nginx_file
369
+    echo "  server_name $PEERTUBE_ONION_HOSTNAME;" >> $peertube_nginx_file
370
     echo '' >> $peertube_nginx_file
370
     echo '' >> $peertube_nginx_file
371
     echo '  location / {' >> $peertube_nginx_file
371
     echo '  location / {' >> $peertube_nginx_file
372
     echo "    proxy_pass http://localhost:${PEERTUBE_PORT};" >> $peertube_nginx_file
372
     echo "    proxy_pass http://localhost:${PEERTUBE_PORT};" >> $peertube_nginx_file
462
     echo '' >> $peertube_config_file
462
     echo '' >> $peertube_config_file
463
     echo 'signup:' >> $peertube_config_file
463
     echo 'signup:' >> $peertube_config_file
464
     echo '  enabled: false' >> $peertube_config_file
464
     echo '  enabled: false' >> $peertube_config_file
465
-    echo ;  limit: 10 # When the limit is reached, registrations are disabled. -1 == unlimited' >> $peertube_config_file
465
+    echo ';  limit: 10 # When the limit is reached, registrations are disabled. -1 == unlimited' >> $peertube_config_file
466
     echo '' >> $peertube_config_file
466
     echo '' >> $peertube_config_file
467
     echo 'user:' >> $peertube_config_file
467
     echo 'user:' >> $peertube_config_file
468
     echo '  # Default value of maximum video BYTES the user can upload (does not take into account transcoded files).' >> $peertube_config_file
468
     echo '  # Default value of maximum video BYTES the user can upload (does not take into account transcoded files).' >> $peertube_config_file