Files
GitOps/nowchess/eu-central-1-staging/ingress.yaml
T
LQ63 fdc7742f28
Delete PR Branch On Close / delete-branch (pull_request) Successful in 5s
fix(nci): add WebSocket timeout annotations and use-regex to ingresses
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 <noreply@anthropic.com>
2026-06-17 13:41:54 +02:00

86 lines
2.5 KiB
YAML
Executable File

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: nowchess-ingress-st
annotations:
cert-manager.io/cluster-issuer: "letsencrypt-prod"
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:
- host: st.nowchess.janis-eccarius.de
http:
paths:
- path: /api/board/game/[A-Za-z0-9]{8}/ws
pathType: ImplementationSpecific
backend:
service:
name: nowchess-ws-active
port:
number: 8084
- path: /api/user/ws
pathType: ImplementationSpecific
backend:
service:
name: nowchess-ws-active
port:
number: 8084
- path: /api/account
pathType: Prefix
backend:
service:
name: nowchess-account-active
port:
number: 8083
- path: /api/challenge
pathType: Prefix
backend:
service:
name: nowchess-account-active
port:
number: 8083
- path: /api/store
pathType: Prefix
backend:
service:
name: nowchess-store-active
port:
number: 8085
- path: /api/tournament
pathType: Prefix
backend:
service:
name: nowchess-tournament-active
port:
number: 8088
- path: /api/bots
pathType: Prefix
backend:
service:
name: nowchess-official-bots-active
port:
number: 8088
- path: /api
pathType: Prefix
backend:
service:
name: nowchess-core-active
port:
number: 8080
- path: /
pathType: Prefix
backend:
service:
name: nowchess-frontend-active
port:
number: 80
tls:
- hosts:
- st.nowchess.janis-eccarius.de
secretName: nowchess-staging-ingress-cert