diff --git a/nowchess/eu-central-1-prod/ingress.yaml b/nowchess/eu-central-1-prod/ingress.yaml index ff52703..27651ba 100644 --- a/nowchess/eu-central-1-prod/ingress.yaml +++ b/nowchess/eu-central-1-prod/ingress.yaml @@ -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: diff --git a/nowchess/eu-central-1-staging/ingress.yaml b/nowchess/eu-central-1-staging/ingress.yaml index 8ff8a20..d78c85c 100644 --- a/nowchess/eu-central-1-staging/ingress.yaml +++ b/nowchess/eu-central-1-staging/ingress.yaml @@ -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: