From 63d7686297cb9a1317bc87b044ce110826ef2dd9 Mon Sep 17 00:00:00 2001 From: Kaelan Patel <32113845+kaelanspatel@users.noreply.github.com> Date: Fri, 31 Jan 2025 01:45:37 +0000 Subject: [PATCH] Add teamsError.html to nginx routing (#3827) --- .../cost-analyzer-frontend-config-map-template.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cost-analyzer/templates/cost-analyzer-frontend-config-map-template.yaml b/cost-analyzer/templates/cost-analyzer-frontend-config-map-template.yaml index 6f8c14781..788cf8283 100755 --- a/cost-analyzer/templates/cost-analyzer-frontend-config-map-template.yaml +++ b/cost-analyzer/templates/cost-analyzer-frontend-config-map-template.yaml @@ -167,6 +167,7 @@ data: } {{- if or .Values.saml.enabled .Values.oidc.enabled }} + add_header Cache-Control "max-age=0"; location / { auth_request /auth; @@ -178,10 +179,14 @@ data: error_page 401 = /login; try_files $uri $uri/ /index.html; } + + # need to be served outside of the auth middleware location /healthz { add_header 'Content-Type' 'text/plain'; return 200 "healthy\n"; } + location = /teamsError.html { } + {{- else }} add_header Cache-Control "max-age=300"; location / {