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"