Skip to content

Commit 36cc44a

Browse files
authored
Remove outdated comment and snippet. (#468)
There is no auth-proxy configurred on this ingress.
1 parent d7dac18 commit 36cc44a

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/app_charts/base/cloud/kubernetes-api.yaml

-14
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,6 @@ metadata:
88
nginx.ingress.kubernetes.io/backend-protocol: HTTPS
99
nginx.ingress.kubernetes.io/proxy-read-timeout: "600" # seconds
1010
nginx.ingress.kubernetes.io/client-body-buffer-size: "50m"
11-
# The web client will reach us through the oauth2-proxy and we need
12-
# to copy the forwarded access token to an authorization header. Prefer
13-
# X-Forwarded-Access-Token in case the browser sends a spurious Authorization.
14-
nginx.ingress.kubernetes.io/configuration-snippet: |
15-
set_by_lua_block $auth {
16-
if ngx.var.http_x_forwarded_access_token then
17-
return "Bearer " .. ngx.var.http_x_forwarded_access_token
18-
end
19-
if ngx.var.http_authorization then
20-
return ngx.var.http_authorization
21-
end
22-
return ""
23-
}
24-
proxy_set_header Authorization $auth;
2511
spec:
2612
ingressClassName: nginx
2713
tls:

0 commit comments

Comments
 (0)