feat(nowchess): update ingress configuration to add WebSocket paths and improve routing

This commit is contained in:
2026-05-19 09:32:23 +02:00
parent 05f5f8ad38
commit c070ce727f
2 changed files with 29 additions and 14 deletions
+15 -7
View File
@@ -7,12 +7,27 @@ 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"
spec:
ingressClassName: nginx
rules:
- host: 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:
@@ -27,13 +42,6 @@ spec:
name: nowchess-account-active
port:
number: 8083
- path: /ws
pathType: Prefix
backend:
service:
name: nowchess-ws-active
port:
number: 8084
- path: /api/store
pathType: Prefix
backend:
+14 -7
View File
@@ -20,6 +20,20 @@ spec:
name: nowchess-account-active
port:
number: 8083
- 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/challenge
pathType: Prefix
backend:
@@ -27,13 +41,6 @@ spec:
name: nowchess-account-active
port:
number: 8083
- path: /ws
pathType: Prefix
backend:
service:
name: nowchess-ws-active
port:
number: 8084
- path: /api/store
pathType: Prefix
backend: