From f67ed7762c41ef746c51dca55e16c0ffa0ac2504 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Sat, 29 Mar 2025 22:20:49 +0300 Subject: [PATCH] roles/nginx: fix http2 syntax --- roles/nginx/templates/blank-vhost.conf.j2 | 5 +++-- roles/nginx/templates/vhost.conf.j2 | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/roles/nginx/templates/blank-vhost.conf.j2 b/roles/nginx/templates/blank-vhost.conf.j2 index bc4d51d..5be5228 100644 --- a/roles/nginx/templates/blank-vhost.conf.j2 +++ b/roles/nginx/templates/blank-vhost.conf.j2 @@ -13,8 +13,9 @@ server { } server { - listen 443 ssl http2 default_server; - listen [::]:443 ssl http2 default_server; + listen 443 ssl default_server; + listen [::]:443 ssl default_server; + http2 on; server_name _; # self-signed "snakeoil" certificate diff --git a/roles/nginx/templates/vhost.conf.j2 b/roles/nginx/templates/vhost.conf.j2 index 818474a..f60bb82 100644 --- a/roles/nginx/templates/vhost.conf.j2 +++ b/roles/nginx/templates/vhost.conf.j2 @@ -32,8 +32,9 @@ server { } server { - listen 443 ssl http2; - listen [::]:443 ssl http2; + listen 443 ssl; + listen [::]:443 ssl; + http2 on; root {{ document_root }};