aboutsummaryrefslogtreecommitdiffstats
path: root/test/functional/configs/ratelimit.conf
blob: 36bae88feeeea1f01aaee95a91822b61bac6d74b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
.include(duplicate=append,priority=0) "{= env.TESTDIR =}/configs/plugins.conf"

redis {
  servers = "{= env.REDIS_ADDR =}:{= env.REDIS_PORT =}";
}

ratelimit {
  rates {
    bounce_to_ip {
      bucket {
        burst = 4;
        rate = "1 / 1s";
      }
    }
    to_selector_xxx {
      selector = "id('special');to.in('special@example.net')";
      bucket {
        burst = 2;
        rate = "1 / 1s";
      }
    }
  }
}