|
@@ -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
|