traefik/integration/fixtures/ratelimit/simple.toml

33 lines
667 B
TOML
Raw Normal View History

2017-09-09 11:36:03 +00:00
defaultEntryPoints = ["http"]
logLevel = "DEBUG"
[entryPoints]
[entryPoints.http]
address = ":80"
[file]
[backends]
[backends.backend1]
[backends.backend1.servers.server1]
url = "http://{{.Server1}}:80"
2018-04-11 14:30:04 +00:00
weight = 1
2017-09-09 11:36:03 +00:00
[frontends]
2018-04-11 14:30:04 +00:00
[frontends.frontend1]
passHostHeader = true
backend = "backend1"
2017-09-09 11:36:03 +00:00
[frontends.frontend1.routes.test_1]
rule = "Path:/"
[frontends.frontend1.ratelimit]
extractorfunc = "client.ip"
2018-04-11 14:30:04 +00:00
[frontends.frontend1.ratelimit.rateset.rateset1]
period = "60s"
average = 4
burst = 5
[frontends.frontend1.ratelimit.rateset.rateset2]
period = "3s"
average = 1
burst = 2