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:
parent
110981d9c3
commit
a3e71e75d2
@ -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 _;
|
||||
|
||||
|
@ -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 }};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user