fix ingress

This commit is contained in:
2025-06-02 00:24:26 +02:00
parent 624b2bb1b8
commit 7f22d664bb
3 changed files with 32 additions and 11 deletions

View File

@@ -0,0 +1,31 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: appflowy-gotrue-ingress
namespace: appflowy
annotations:
nginx.ingress.kubernetes.io/use-regex: "true"
nginx.ingress.kubernetes.io/rewrite-target: /$2
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
nginx.ingress.kubernetes.io/proxy-body-size: "50m"
cert-manager.io/cluster-issuer: "letsencrypt-prod"
spec:
ingressClassName: nginx
tls:
- hosts:
- appflowy.prod.panic.haus
secretName: appflowy-tls
rules:
- host: appflowy.prod.panic.haus
http:
paths:
# GoTrue: rewrite /gotrue(/|$)(.*) → /$2
- path: /gotrue(/|$)(.*)
pathType: ImplementationSpecific
backend:
service:
name: gotrue
port:
number: 9999

View File

@@ -30,17 +30,6 @@ spec:
port:
number: 80
# ┌──────────────────────────────────────────────────────────────────────────────┐
# │ 2) GoTrue (auth) exposed under /gotrue │
# └──────────────────────────────────────────────────────────────────────────────┘
- path: /gotrue
pathType: Prefix
backend:
service:
name: gotrue
port:
number: 9999
# ┌──────────────────────────────────────────────────────────────────────────────┐
# │ 3) AppFlowy-Cloud API & Web │
# • If you want API served on /api, and the static Web on / │

View File

@@ -8,3 +8,4 @@ resources:
- deployment.yaml
- service.yaml
- ingress.yaml
- gotrue-ingress.yaml