From 1105260935598833ce4d2bb5e1c01bf683a9c0d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beatrice=20Dellac=C3=A0?= Date: Mon, 2 Jun 2025 00:20:10 +0200 Subject: [PATCH] fix ingress --- deploy/appflowy/ingress.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/deploy/appflowy/ingress.yaml b/deploy/appflowy/ingress.yaml index 6348062..4597bc6 100644 --- a/deploy/appflowy/ingress.yaml +++ b/deploy/appflowy/ingress.yaml @@ -8,6 +8,7 @@ metadata: nginx.ingress.kubernetes.io/force-ssl-redirect: "true" nginx.ingress.kubernetes.io/proxy-body-size: "50m" nginx.ingress.kubernetes.io/use-regex: "true" + nginx.ingress.kubernetes.io/rewrite-target: /$2 spec: ingressClassName: nginx @@ -34,8 +35,8 @@ spec: # ┌──────────────────────────────────────────────────────────────────────────────┐ # │ 2) GoTrue (auth) – exposed under /gotrue │ # └──────────────────────────────────────────────────────────────────────────────┘ - - path: /gotrue(/|$)(.*) - pathType: ImplementationSpecific + - path: /gotrue + pathType: Prefix backend: service: name: gotrue @@ -50,8 +51,8 @@ spec: # └──────────────────────────────────────────────────────────────────────────────┘ # a) Direct all `/api/*` calls to the backend service - - path: /api(/|$)(.*) - pathType: ImplementationSpecific + - path: /api + pathType: Prefix backend: service: name: appflowy-cloud