From 419a45b3a74b6b9edece60612486788711e34a60 Mon Sep 17 00:00:00 2001 From: Sienna Meridian Satterwhite Date: Tue, 3 Mar 2026 01:04:10 +0000 Subject: [PATCH] fix: route people.* to frontend; path-route API/admin/oauth2 to backend MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit people.* now routes / to people-frontend (nginx/React SPA). Path prefixes /api/, /admin/, and /o/ are forwarded to people-backend (Django/gunicorn), matching the app's URL structure. Previously all people.* traffic hit people-backend directly, causing Django to return 404 "Page not found at /" for the root path. The [[routes.paths]] mechanism already existed in the proxy (used by the auth route) — only a config update was needed. --- base/ingress/pingora-config.yaml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/base/ingress/pingora-config.yaml b/base/ingress/pingora-config.yaml index 0e97968..43a0a19 100644 --- a/base/ingress/pingora-config.yaml +++ b/base/ingress/pingora-config.yaml @@ -62,7 +62,20 @@ data: [[routes]] host_prefix = "people" - backend = "http://people-backend.lasuite.svc.cluster.local:80" + backend = "http://people-frontend.lasuite.svc.cluster.local:80" + + # Backend handles the API, Django admin, and OAuth2 provider. + [[routes.paths]] + prefix = "/api/" + backend = "http://people-backend.lasuite.svc.cluster.local:80" + + [[routes.paths]] + prefix = "/admin/" + backend = "http://people-backend.lasuite.svc.cluster.local:80" + + [[routes.paths]] + prefix = "/o/" + backend = "http://people-backend.lasuite.svc.cluster.local:80" [[routes]] host_prefix = "find"