From 1eb070ad66a4f1485d71d2d0fa6abc92ffc01337 Mon Sep 17 00:00:00 2001 From: Ruben Hensen Date: Thu, 5 Feb 2026 16:54:32 +0100 Subject: [PATCH] Fix ingress rewrite breaking frontend static files Split lingo-ingress into two separate ingresses: - lingo-api-ingress: keeps rewrite-target for API path stripping - lingo-frontend-ingress: no rewrite, allows static files to load The previous single ingress applied rewrite-target to all paths, causing frontend requests like /css/bootstrap.css to be rewritten to / and return index.html instead of the actual files. --- lingo/lingo-ingress.yaml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/lingo/lingo-ingress.yaml b/lingo/lingo-ingress.yaml index 5626545..3f9f88c 100644 --- a/lingo/lingo-ingress.yaml +++ b/lingo/lingo-ingress.yaml @@ -1,7 +1,7 @@ apiVersion: networking.k8s.io/v1 kind: Ingress metadata: - name: lingo-ingress + name: lingo-api-ingress annotations: cert-manager.io/cluster-issuer: prod-cluster-issuer nginx.ingress.kubernetes.io/ssl-passthrough: "false" @@ -19,6 +19,24 @@ spec: name: lingo-api port: number: 8000 + tls: + - secretName: letsencrypt-prod + hosts: + - lingo.hensen.io +--- +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: lingo-frontend-ingress + annotations: + cert-manager.io/cluster-issuer: prod-cluster-issuer + nginx.ingress.kubernetes.io/ssl-passthrough: "false" +spec: + ingressClassName: nginx + rules: + - host: lingo.hensen.io + http: + paths: - path: / pathType: Prefix backend: