traefik/integration/fixtures/ratelimit/simple.toml
2019-04-09 17:24:05 +02:00

39 lines
847 B
TOML

[global]
checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
[entrypoints]
[entrypoints.web]
address = ":80"
[providers]
[providers.file]
[http.routers]
[http.routers.router1]
Service = "service1"
Middlewares = [ "ratelimit" ]
Rule = "Path(`/`)"
[http.middlewares]
[http.middlewares.ratelimit.RateLimit]
extractorfunc = "client.ip"
[http.middlewares.ratelimit.RateLimit.rateset.rateset1]
period = "60s"
average = 4
burst = 5
[http.middlewares.ratelimit.RateLimit.rateset.rateset2]
period = "3s"
average = 1
burst = 2
[http.services]
[http.services.service1]
[http.services.service1.LoadBalancer]
passHostHeader = true
[[http.services.service1.LoadBalancer.Servers]]
URL = "http://{{.Server1}}:80"
Weight = 1