Enable HTTP/2 support on master.tus.io

This commit is contained in:
Marius 2017-01-24 09:47:06 +01:00
parent 89dbe66a4f
commit 36f646851d
2 changed files with 5 additions and 5 deletions

View File

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

View File

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