From fdc7742f2893a9ac17cd09162ecca4ea89c2d88d Mon Sep 17 00:00:00 2001 From: LQ63 Date: Wed, 17 Jun 2026 13:41:54 +0200 Subject: [PATCH] fix(nci): add WebSocket timeout annotations and use-regex to ingresses MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add proxy-read-timeout and proxy-send-timeout (3600s) so nginx does not drop long-lived WebSocket connections at the default 60s idle timeout. Add use-regex: "true" to staging to match production — without it, the ImplementationSpecific path for the game WebSocket (/api/board/game/[A-Za-z0-9]{8}/ws) is treated as a literal string instead of a regex and never matches real game IDs. Co-Authored-By: Claude Sonnet 4.6 --- nowchess/eu-central-1-prod/ingress.yaml | 2 ++ nowchess/eu-central-1-staging/ingress.yaml | 3 +++ 2 files changed, 5 insertions(+) diff --git a/nowchess/eu-central-1-prod/ingress.yaml b/nowchess/eu-central-1-prod/ingress.yaml index c025db0..b25c7f7 100755 --- a/nowchess/eu-central-1-prod/ingress.yaml +++ b/nowchess/eu-central-1-prod/ingress.yaml @@ -8,6 +8,8 @@ metadata: nginx.ingress.kubernetes.io/force-ssl-redirect: "true" nginx.ingress.kubernetes.io/backend-protocol: "HTTP" nginx.ingress.kubernetes.io/use-regex: "true" + nginx.ingress.kubernetes.io/proxy-read-timeout: "3600" + nginx.ingress.kubernetes.io/proxy-send-timeout: "3600" spec: ingressClassName: nginx rules: diff --git a/nowchess/eu-central-1-staging/ingress.yaml b/nowchess/eu-central-1-staging/ingress.yaml index 72c8fe2..b1a5d71 100755 --- a/nowchess/eu-central-1-staging/ingress.yaml +++ b/nowchess/eu-central-1-staging/ingress.yaml @@ -7,6 +7,9 @@ metadata: nginx.ingress.kubernetes.io/ssl-redirect: "true" nginx.ingress.kubernetes.io/force-ssl-redirect: "true" nginx.ingress.kubernetes.io/backend-protocol: "HTTP" + nginx.ingress.kubernetes.io/use-regex: "true" + nginx.ingress.kubernetes.io/proxy-read-timeout: "3600" + nginx.ingress.kubernetes.io/proxy-send-timeout: "3600" spec: ingressClassName: nginx rules: