From f022e849798e6cecf56f3746c9fef2c8978602a8 Mon Sep 17 00:00:00 2001 From: bergi9 Date: Tue, 7 Sep 2021 22:50:49 +0200 Subject: [PATCH] Add SSL and HTTP2 into IPv6 on listen.conf I can only server contents with IPv6 because I'm sitting behind CGN on IPv4. When enabling HTTP2 it still not serve contents with HTTP2 as there are missing arguments in the `listen`. But it still does the SSL encryption. Previous to this commit it generates: ``` listen 80; listen [::]:80; listen 443 ssl http2; listen [::]:443; ``` Now it generates: ``` listen 80; listen [::]:80; listen 443 ssl http2; listen [::]:443 ssl http2; ``` --- backend/templates/_listen.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/templates/_listen.conf b/backend/templates/_listen.conf index 8f40bea..730f3a7 100644 --- a/backend/templates/_listen.conf +++ b/backend/templates/_listen.conf @@ -7,7 +7,7 @@ {% if certificate -%} listen 443 ssl{% if http2_support %} http2{% endif %}; {% if ipv6 -%} - listen [::]:443; + listen [::]:443 ssl{% if http2_support %} http2{% endif %}; {% else -%} #listen [::]:443; {% endif %}