diff options
Diffstat (limited to 'test/functional/configs/ratelimit.conf')
-rw-r--r-- | test/functional/configs/ratelimit.conf | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/functional/configs/ratelimit.conf b/test/functional/configs/ratelimit.conf new file mode 100644 index 000000000..ab0c44b42 --- /dev/null +++ b/test/functional/configs/ratelimit.conf @@ -0,0 +1,20 @@ +.include(duplicate=append,priority=0) "{= env.TESTDIR =}/configs/plugins.conf" + +lua = "{= env.LUA_SCRIPT =}"; +redis { + servers = "{= env.REDIS_ADDR =}:{= env.REDIS_PORT =}"; +} + +ratelimit { + bounce_to_ip { + bucket { + burst = 4; + rate = "1 / 1s"; + } + } + to_selector { + selector = "to:in{special@example.net}"; + burst = 2; + rate = "1 / 1s"; + } +} |