traefik/integration/fixtures/ratelimit/simple.toml

36 lines
734 B
TOML
Raw Normal View History

[log]
2017-09-09 11:36:03 +00:00
logLevel = "DEBUG"
[entryPoints]
[entryPoints.http]
address = ":80"
[providers]
[providers.file]
2018-04-11 14:30:04 +00:00
2018-11-14 09:18:03 +00:00
[Routers]
[Routers.router1]
Service = "service1"
Middlewares = [ "ratelimit" ]
Rule = "Path:/"
[Middlewares]
[Middlewares.ratelimit.RateLimit]
2017-09-09 11:36:03 +00:00
extractorfunc = "client.ip"
2018-11-14 09:18:03 +00:00
[Middlewares.ratelimit.RateLimit.rateset.rateset1]
2018-04-11 14:30:04 +00:00
period = "60s"
average = 4
burst = 5
2018-11-14 09:18:03 +00:00
[Middlewares.ratelimit.RateLimit.rateset.rateset2]
2018-04-11 14:30:04 +00:00
period = "3s"
average = 1
burst = 2
2018-11-14 09:18:03 +00:00
[Services]
[Services.service1]
[Services.service1.LoadBalancer]
passHostHeader = true
[[Services.service1.LoadBalancer.Servers]]
URL = "http://{{.Server1}}:80"
Weight = 1