Skip to content

Commit

Permalink
Add teamsError.html to nginx routing
Browse files Browse the repository at this point in the history
  • Loading branch information
kaelanspatel committed Jan 31, 2025
1 parent 6ec18e5 commit 9c69633
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ data:
}

{{- if or .Values.saml.enabled .Values.oidc.enabled }}

add_header Cache-Control "max-age=0";
location / {
auth_request /auth;
Expand All @@ -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 / {
Expand Down

0 comments on commit 9c69633

Please sign in to comment.