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:
Patrick Mahoney 2017-06-15 16:40:03 -05:00
parent 245e6b0b0e
commit cc091bddb2

View file

@ -137,12 +137,10 @@ http {
map $pass_access_scheme $the_x_forwarded_for {
default $remote_addr;
https $proxy_protocol_addr;
}
map $pass_access_scheme $the_real_ip {
default $remote_addr;
https $proxy_protocol_addr;
}
# map port 442 to 443 for header X-Forwarded-Port