浏览代码

use http2

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

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

@@ -296,14 +296,14 @@ function peertube_setup_web {
296 296
     if [[ $ONION_ONLY == "no" ]]; then
297 297
         echo 'server {' > $peertube_nginx_file
298 298
         echo '  listen 80;' >> $peertube_nginx_file
299
-        echo '  # listen [::]:80;' >> $peertube_nginx_file
299
+        echo '  listen [::]:80;' >> $peertube_nginx_file
300 300
         echo "  server_name $PEERTUBE_DOMAIN_NAME;" >> $peertube_nginx_file
301 301
         echo '  rewrite ^ https://$server_name$request_uri? permanent;' >> $peertube_nginx_file
302 302
         echo '}' >> $peertube_nginx_file
303 303
         echo '' >> $peertube_nginx_file
304 304
         echo 'server {' >> $peertube_nginx_file
305
-        echo '  listen 443 ssl; # spdy; # or http2' >> $peertube_nginx_file
306
-        echo '  # listen [::]:443 ssl spdy;' >> $peertube_nginx_file
305
+        echo '  listen 443 ssl http2;' >> $peertube_nginx_file
306
+        echo '  listen [::]:443 ssl http2;' >> $peertube_nginx_file
307 307
         echo "  server_name $PEERTUBE_DOMAIN_NAME;" >> $peertube_nginx_file
308 308
         echo '' >> $peertube_nginx_file
309 309
         function_check nginx_ssl