Skip to content

Commit

Permalink
Don't use $proxy_protocol var which may be undefined.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmahoney-raise committed Jun 20, 2017
1 parent 245e6b0 commit b916b5f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions controllers/nginx/rootfs/etc/nginx/template/nginx.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b916b5f

Please sign in to comment.