Re: nginx directives geo and map behind proxy

2019-03-18 Thread gogan
Francis Daly Wrote: --- > geo $limited { > default 0; > x.x.x.x 1; > } > > map $limited $botlimit { > 1 ''; > 0 $remote_addr; > } > That config says that requests with $remote_addr set to x.x.x.x should > not be limited, and

Re: nginx directives geo and map behind proxy

2019-03-15 Thread gogan
Hi, thanks for the response. I try it with a short view. Situation 1) Proxy (external, myracloud)<--- Connect official way | LB/Proxy (internal) | w-1 w-2 w-3 .. w10 Situation 2) LB/Proxy (internal)

nginx directives geo and map behind proxy

2019-03-12 Thread gogan
We have a problem with mapping ip's on our nginx loadbalancer behind myracloud (proxy). In configuration file we have: set_real_ip_from x.x.x.x ... real_ip_header CF-Connecting-IP; real_ip_recursive on; In addition to map ip's: geo $limited { default 0; x.x.x.x 1; } map $limited