From 7d548ad4ae3022863262f485505a32df13df1983 Mon Sep 17 00:00:00 2001 From: Tealk <12276250+Tealk@users.noreply.github.com> Date: Wed, 16 Oct 2024 04:17:43 +0200 Subject: [PATCH] Fix Warnung: the "listen ... http2" directive is deprecated (#873) * Fix Warnung: the "listen ... http2" directive is deprecated Signed-off-by: Tealk * Update templates/web.ssl.template.yml Co-authored-by: Alan Guo Xiang Tan * add on to http2 --------- Signed-off-by: Tealk Co-authored-by: Alan Guo Xiang Tan --- templates/web.ssl.template.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/templates/web.ssl.template.yml b/templates/web.ssl.template.yml index cefd1aa..cc6a66f 100644 --- a/templates/web.ssl.template.yml +++ b/templates/web.ssl.template.yml @@ -15,14 +15,16 @@ run: filename: "/etc/nginx/conf.d/discourse.conf" from: /listen 80;\s+gzip on;/m to: | - listen 443 ssl http2; + listen 443 ssl; + http2 on; SSL_TEMPLATE_SSL_BLOCK - replace: filename: "/etc/nginx/conf.d/discourse.conf" from: /listen 80;\s+listen \[::\]:80;\s+gzip on;/m to: | - listen 443 ssl http2; - listen [::]:443 ssl http2; + listen 443 ssl; + listen [::]:443 ssl; + http2 on; SSL_TEMPLATE_SSL_BLOCK - replace: hook: ssl -- 2.25.1