From a0b70482fe38104027792b70070f2f173a8bc227 Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Thu, 7 May 2026 17:10:13 +0000 Subject: [PATCH] [forgejo] Bump webhook DELIVER_TIMEOUT 5s -> 30s MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Forgejo→Woodpecker webhooks were timing out on first request after pod restart. The default 5s deadline is too tight for the cold Cloudflare-tunnel TLS handshake (observed 6-8s). 30s comfortably covers retries. Co-Authored-By: Claude Opus 4.7 --- stacks/forgejo/main.tf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/stacks/forgejo/main.tf b/stacks/forgejo/main.tf index cde93da5..fdd2fadf 100644 --- a/stacks/forgejo/main.tf +++ b/stacks/forgejo/main.tf @@ -116,6 +116,13 @@ resource "kubernetes_deployment" "forgejo" { name = "FORGEJO__webhook__ALLOWED_HOST_LIST" value = "*.svc.cluster.local,ci.viktorbarzin.me,*.viktorbarzin.me" } + # Default DELIVER_TIMEOUT is 5s — too tight for the Cloudflare-tunnel + # round-trip on first request after pod restart (cold TLS handshake + # can hit 6-8s). 30s comfortably covers retries. + env { + name = "FORGEJO__webhook__DELIVER_TIMEOUT" + value = "30" + } # OCI registry (container packages). Default-on in Forgejo v11 but # explicit so it can't be silently disabled by an upstream config # change. CHUNKED_UPLOAD_PATH defaults to `data/tmp/package-upload`