Cleanup
This commit is contained in:
parent
f549e03cbd
commit
f253d249f2
2 changed files with 7 additions and 4 deletions
|
|
@ -155,8 +155,8 @@ http {
|
|||
# Trust HTTP X-Forwarded-* Headers, but use direct values if they're missing.
|
||||
map {{ buildForwardedFor $cfg.ForwardedForHeader }} $the_real_ip {
|
||||
# Get IP address from X-Forwarded-For HTTP header
|
||||
default $remote_addr;
|
||||
'' $realip_remote_addr;
|
||||
default $realip_remote_addr;
|
||||
'' $remote_addr;
|
||||
}
|
||||
|
||||
# trust http_x_forwarded_proto headers correctly indicate ssl offloading
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue