From 703647da1e59636ac4affe34261c27f4e18b8878 Mon Sep 17 00:00:00 2001
From: "VYSE V.E.O" <VEO@LIVE.COM>
Date: Mon, 16 Dec 2024 21:17:46 +0800
Subject: [PATCH] fix client unsupported h2 protocol when only 443 activated
 (#3009)

When I remove 80 http port in Caddyfile, netbird client cannot connect server:443. Logs show error below:
{"level":"debug","ts":1733809631.4012625,"logger":"http.stdlib","msg":"http: TLS handshake error from redacted:41580: tls: client requested unsupported application protocols ([h2])"}
I wonder here h2 protocol is absent.
---
 infrastructure_files/getting-started-with-zitadel.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/infrastructure_files/getting-started-with-zitadel.sh b/infrastructure_files/getting-started-with-zitadel.sh
index 7793d1fda1d..9b80058c27a 100644
--- a/infrastructure_files/getting-started-with-zitadel.sh
+++ b/infrastructure_files/getting-started-with-zitadel.sh
@@ -530,7 +530,7 @@ renderCaddyfile() {
 {
   debug
 	servers :80,:443 {
-    protocols h1 h2c h3
+    protocols h1 h2c h2 h3
   }
 }