nginx.ingress.kubernetes.io/auth-url: Allow 127.0.0.1 to avoid external hops
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
This commit is contained in:
parent
d44a8e0045
commit
d59705e189
1 changed files with 6 additions and 1 deletions
|
@ -1133,7 +1133,12 @@ stream {
|
|||
proxy_set_header X-Scheme $pass_access_scheme;
|
||||
{{ end }}
|
||||
|
||||
{{ if eq $externalAuth.Host "127.0.0.1" }}
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_ssl_name $http_host;
|
||||
{{ else }}
|
||||
proxy_set_header Host {{ $externalAuth.Host }};
|
||||
{{ end }}
|
||||
proxy_set_header X-Original-URL $scheme://$http_host$request_uri;
|
||||
proxy_set_header X-Original-Method $request_method;
|
||||
proxy_set_header X-Sent-From "nginx-ingress-controller";
|
||||
|
|
Loading…
Reference in a new issue