Merge pull request #1323 from sethpollack/white_list_real_ip
use $the_real_ip for rate limit whitelist
This commit is contained in:
commit
981967b05e
1 changed files with 2 additions and 2 deletions
|
@ -50,7 +50,7 @@ http {
|
|||
{{ end }}
|
||||
|
||||
sendfile on;
|
||||
|
||||
|
||||
aio threads;
|
||||
aio_write on;
|
||||
|
||||
|
@ -304,7 +304,7 @@ http {
|
|||
|
||||
{{ range $rl := (filterRateLimits $servers ) }}
|
||||
# Ratelimit {{ $rl.Name }}
|
||||
geo $whitelist_{{ $rl.ID }} {
|
||||
geo $the_real_ip $whitelist_{{ $rl.ID }} {
|
||||
default 0;
|
||||
{{ range $ip := $rl.Whitelist }}
|
||||
{{ $ip }} 1;{{ end }}
|
||||
|
|
Loading…
Reference in a new issue