use $the_real_ip for rate limit whitelist
This commit is contained in:
parent
7b4d8cb1c3
commit
693a588175
1 changed files with 2 additions and 2 deletions
|
@ -50,7 +50,7 @@ http {
|
|||
{{ end }}
|
||||
|
||||
sendfile on;
|
||||
|
||||
|
||||
aio threads;
|
||||
aio_write on;
|
||||
|
||||
|
@ -303,7 +303,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