feat(nowchess): update ingress configuration to add WebSocket paths and improve routing
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user