use http2

This commit is contained in:
Bob Mottram 2017-11-30 20:25:42 +00:00
parent 7a15ce3b83
commit a2005d92c0
1 changed files with 3 additions and 3 deletions

View File

@ -296,14 +296,14 @@ function peertube_setup_web {
if [[ $ONION_ONLY == "no" ]]; then
echo 'server {' > $peertube_nginx_file
echo ' listen 80;' >> $peertube_nginx_file
echo ' # listen [::]:80;' >> $peertube_nginx_file
echo ' listen [::]:80;' >> $peertube_nginx_file
echo " server_name $PEERTUBE_DOMAIN_NAME;" >> $peertube_nginx_file
echo ' rewrite ^ https://$server_name$request_uri? permanent;' >> $peertube_nginx_file
echo '}' >> $peertube_nginx_file
echo '' >> $peertube_nginx_file
echo 'server {' >> $peertube_nginx_file
echo ' listen 443 ssl; # spdy; # or http2' >> $peertube_nginx_file
echo ' # listen [::]:443 ssl spdy;' >> $peertube_nginx_file
echo ' listen 443 ssl http2;' >> $peertube_nginx_file
echo ' listen [::]:443 ssl http2;' >> $peertube_nginx_file
echo " server_name $PEERTUBE_DOMAIN_NAME;" >> $peertube_nginx_file
echo '' >> $peertube_nginx_file
function_check nginx_ssl