Sets parameters for a shared memory zone that will keep states for various keys.

This commit is contained in:
Georgiy Kutsurua 2017-07-07 03:13:32 +04:00
parent 4aef07d1c9
commit d56e261835
5 changed files with 21 additions and 5 deletions

View file

@ -280,7 +280,7 @@ http {
{{/* build all the required rate limit zones. Each annotation requires a dedicated zone */}}
{{/* 1MB -> 16 thousand 64-byte states or about 8 thousand 128-byte states */}}
{{ range $zone := (buildRateLimitZones .Servers) }}
{{ range $zone := (buildRateLimitZones $cfg.LimitConnZoneVariable .Servers) }}
{{ $zone }}
{{ end }}