roles/nginx: SPDY -> HTTP/2

nginx 1.9.5 mainline adds support for HTTP/2 and deprecates SPDY.

Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
Alan Orth 2015-09-22 19:40:30 +03:00
parent 110981d9c3
commit a3e71e75d2
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
2 changed files with 3 additions and 3 deletions

View File

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

View File

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