use http2
This commit is contained in:
parent
7a15ce3b83
commit
a2005d92c0
|
@ -296,14 +296,14 @@ function peertube_setup_web {
|
||||||
if [[ $ONION_ONLY == "no" ]]; then
|
if [[ $ONION_ONLY == "no" ]]; then
|
||||||
echo 'server {' > $peertube_nginx_file
|
echo 'server {' > $peertube_nginx_file
|
||||||
echo ' listen 80;' >> $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 " server_name $PEERTUBE_DOMAIN_NAME;" >> $peertube_nginx_file
|
||||||
echo ' rewrite ^ https://$server_name$request_uri? permanent;' >> $peertube_nginx_file
|
echo ' rewrite ^ https://$server_name$request_uri? permanent;' >> $peertube_nginx_file
|
||||||
echo '}' >> $peertube_nginx_file
|
echo '}' >> $peertube_nginx_file
|
||||||
echo '' >> $peertube_nginx_file
|
echo '' >> $peertube_nginx_file
|
||||||
echo 'server {' >> $peertube_nginx_file
|
echo 'server {' >> $peertube_nginx_file
|
||||||
echo ' listen 443 ssl; # spdy; # or http2' >> $peertube_nginx_file
|
echo ' listen 443 ssl http2;' >> $peertube_nginx_file
|
||||||
echo ' # listen [::]:443 ssl spdy;' >> $peertube_nginx_file
|
echo ' listen [::]:443 ssl http2;' >> $peertube_nginx_file
|
||||||
echo " server_name $PEERTUBE_DOMAIN_NAME;" >> $peertube_nginx_file
|
echo " server_name $PEERTUBE_DOMAIN_NAME;" >> $peertube_nginx_file
|
||||||
echo '' >> $peertube_nginx_file
|
echo '' >> $peertube_nginx_file
|
||||||
function_check nginx_ssl
|
function_check nginx_ssl
|
||||||
|
|
Loading…
Reference in New Issue