Skip to content

Commit

Permalink
Remove outdated comment and snippet.
Browse files Browse the repository at this point in the history
There is no auth-proxy configurred on this ingress.
  • Loading branch information
ensonic committed Nov 28, 2024
1 parent d7dac18 commit 6a2e652
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/app_charts/base/cloud/kubernetes-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,6 @@ metadata:
nginx.ingress.kubernetes.io/backend-protocol: HTTPS
nginx.ingress.kubernetes.io/proxy-read-timeout: "600" # seconds
nginx.ingress.kubernetes.io/client-body-buffer-size: "50m"
# The web client will reach us through the oauth2-proxy and we need
# to copy the forwarded access token to an authorization header. Prefer
# X-Forwarded-Access-Token in case the browser sends a spurious Authorization.
nginx.ingress.kubernetes.io/configuration-snippet: |
set_by_lua_block $auth {
if ngx.var.http_x_forwarded_access_token then
return "Bearer " .. ngx.var.http_x_forwarded_access_token
end
if ngx.var.http_authorization then
return ngx.var.http_authorization
end
return ""
}
proxy_set_header Authorization $auth;
spec:
ingressClassName: nginx
tls:
Expand Down

0 comments on commit 6a2e652

Please sign in to comment.