Don't use $proxy_protocol var which may be undefined.
See https://github.com/kubernetes/ingress/issues/800#issuecomment-305203830
This commit is contained in:
parent
245e6b0b0e
commit
b916b5ff0f
1 changed files with 0 additions and 2 deletions
|
@ -137,12 +137,10 @@ http {
|
||||||
|
|
||||||
map $pass_access_scheme $the_x_forwarded_for {
|
map $pass_access_scheme $the_x_forwarded_for {
|
||||||
default $remote_addr;
|
default $remote_addr;
|
||||||
https $proxy_protocol_addr;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
map $pass_access_scheme $the_real_ip {
|
map $pass_access_scheme $the_real_ip {
|
||||||
default $remote_addr;
|
default $remote_addr;
|
||||||
https $proxy_protocol_addr;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# map port 442 to 443 for header X-Forwarded-Port
|
# map port 442 to 443 for header X-Forwarded-Port
|
||||||
|
|
Loading…
Reference in a new issue