From b43a4798758c1f281532aadb37ee9cb6e2473f20 Mon Sep 17 00:00:00 2001 From: Viktor Berke Date: Fri, 8 Nov 2024 22:37:07 +0100 Subject: [PATCH] Update HTTP2 syntax Fixes #6 --- templates/host.conf.j2 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/templates/host.conf.j2 b/templates/host.conf.j2 index ae40cda..5215ea4 100644 --- a/templates/host.conf.j2 +++ b/templates/host.conf.j2 @@ -2,8 +2,9 @@ server { {% if not eff_ssl_disabled | bool %} - listen {{ eff_host_port }} ssl http2; - listen [::]:{{ eff_host_port }} ssl http2; + listen {{ eff_host_port }} ssl; + listen [::]:{{ eff_host_port }} ssl; + http2 on; include ssl.conf; ssl_certificate {{ eff_ssl_cert }}; ssl_certificate_key {{ eff_ssl_key }}; @@ -33,8 +34,9 @@ upstream appserver server { {% if not eff_ssl_disabled | bool %} - listen {{ eff_host_port }} ssl http2; - listen [::]:{{ eff_host_port }} ssl http2; + listen {{ eff_host_port }} ssl; + listen [::]:{{ eff_host_port }} ssl; + http2 on; include ssl.conf; ssl_certificate {{ eff_ssl_cert }}; ssl_certificate_key {{ eff_ssl_key }};