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/ssl-redirect: "true"
|
||||||
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
|
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
|
||||||
nginx.ingress.kubernetes.io/backend-protocol: "HTTP"
|
nginx.ingress.kubernetes.io/backend-protocol: "HTTP"
|
||||||
|
nginx.ingress.kubernetes.io/use-regex: "true"
|
||||||
spec:
|
spec:
|
||||||
ingressClassName: nginx
|
ingressClassName: nginx
|
||||||
rules:
|
rules:
|
||||||
- host: nowchess.janis-eccarius.de
|
- host: nowchess.janis-eccarius.de
|
||||||
http:
|
http:
|
||||||
paths:
|
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
|
- path: /api/account
|
||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
backend:
|
backend:
|
||||||
@@ -27,13 +42,6 @@ spec:
|
|||||||
name: nowchess-account-active
|
name: nowchess-account-active
|
||||||
port:
|
port:
|
||||||
number: 8083
|
number: 8083
|
||||||
- path: /ws
|
|
||||||
pathType: Prefix
|
|
||||||
backend:
|
|
||||||
service:
|
|
||||||
name: nowchess-ws-active
|
|
||||||
port:
|
|
||||||
number: 8084
|
|
||||||
- path: /api/store
|
- path: /api/store
|
||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
backend:
|
backend:
|
||||||
|
|||||||
@@ -20,6 +20,20 @@ spec:
|
|||||||
name: nowchess-account-active
|
name: nowchess-account-active
|
||||||
port:
|
port:
|
||||||
number: 8083
|
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
|
- path: /api/challenge
|
||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
backend:
|
backend:
|
||||||
@@ -27,13 +41,6 @@ spec:
|
|||||||
name: nowchess-account-active
|
name: nowchess-account-active
|
||||||
port:
|
port:
|
||||||
number: 8083
|
number: 8083
|
||||||
- path: /ws
|
|
||||||
pathType: Prefix
|
|
||||||
backend:
|
|
||||||
service:
|
|
||||||
name: nowchess-ws-active
|
|
||||||
port:
|
|
||||||
number: 8084
|
|
||||||
- path: /api/store
|
- path: /api/store
|
||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
backend:
|
backend:
|
||||||
|
|||||||
Reference in New Issue
Block a user