From a3e71e75d257bc198cc22ff3be929cff33752fcf Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Tue, 22 Sep 2015 19:40:30 +0300 Subject: [PATCH] roles/nginx: SPDY -> HTTP/2 nginx 1.9.5 mainline adds support for HTTP/2 and deprecates SPDY. Signed-off-by: Alan Orth --- roles/nginx/templates/blank-vhost.conf.j2 | 2 +- roles/nginx/templates/vhost.conf.j2 | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/nginx/templates/blank-vhost.conf.j2 b/roles/nginx/templates/blank-vhost.conf.j2 index fc6848d..54318fb 100644 --- a/roles/nginx/templates/blank-vhost.conf.j2 +++ b/roles/nginx/templates/blank-vhost.conf.j2 @@ -5,7 +5,7 @@ server { listen 80 default; {% if nginx_tls_vhosts is defined %} - listen 443 ssl spdy default; + listen 443 ssl http2 default; {% endif %} server_name _; diff --git a/roles/nginx/templates/vhost.conf.j2 b/roles/nginx/templates/vhost.conf.j2 index 5b8a917..ce5480b 100644 --- a/roles/nginx/templates/vhost.conf.j2 +++ b/roles/nginx/templates/vhost.conf.j2 @@ -20,8 +20,8 @@ server { {% endif %} server { - listen {% if use_https == "yes" %} 443 ssl spdy{% else %} 80{% endif %}; - listen [::]{% if use_https == "yes" %}:443 ssl spdy{% else %}:80{% endif %}; + listen {% if use_https == "yes" %} 443 ssl http2{% else %} 80{% endif %}; + listen [::]{% if use_https == "yes" %}:443 ssl http2{% else %}:80{% endif %}; root {{ nginx_root_prefix }}/{{ domain_name }};