From 36f646851dd1730305ad453b29e20e88ea9fe4be Mon Sep 17 00:00:00 2001 From: Marius Date: Tue, 24 Jan 2017 09:47:06 +0100 Subject: [PATCH] Enable HTTP/2 support on master.tus.io --- .infra/Freyfile.hcl | 2 +- .infra/files/nginx.conf | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.infra/Freyfile.hcl b/.infra/Freyfile.hcl index 3a2fb56..eb6889e 100644 --- a/.infra/Freyfile.hcl +++ b/.infra/Freyfile.hcl @@ -188,7 +188,7 @@ setup { name = "Setup nginx" tasks { name = "nginx | Add nginx PPA" - apt_repository = "repo='ppa:nginx/stable'" + apt_repository = "repo='ppa:ondrej/nginx'" } tasks { name = "nginx | Create public www directory" diff --git a/.infra/files/nginx.conf b/.infra/files/nginx.conf index cf65da0..5376a25 100644 --- a/.infra/files/nginx.conf +++ b/.infra/files/nginx.conf @@ -1,9 +1,9 @@ server { - listen 80 default_server; - listen [::]:80 default_server ipv6only=on; + listen 80 http2 default_server; + listen [::]:80 http2 default_server ipv6only=on; - listen 443 ssl; - listen [::]:443 ipv6only=on ssl; + listen 443 http2 ssl; + listen [::]:443 http2 ipv6only=on ssl; ssl_certificate /etc/letsencrypt/live/master.tus.io/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/master.tus.io/privkey.pem;