mirror of
https://github.com/containous/traefik.git
synced 2024-12-27 03:21:40 +03:00
37 lines
676 B
TOML
37 lines
676 B
TOML
[global]
|
|
checkNewVersion = false
|
|
sendAnonymousUsage = false
|
|
|
|
[api]
|
|
insecure = true
|
|
|
|
[log]
|
|
level = "DEBUG"
|
|
|
|
[entryPoints]
|
|
[entryPoints.web]
|
|
address = ":8081"
|
|
|
|
[providers.file]
|
|
filename = "{{ .SelfFilename }}"
|
|
|
|
## dynamic configuration ##
|
|
|
|
[http.routers]
|
|
[http.routers.router1]
|
|
service = "service1"
|
|
middlewares = [ "ratelimit" ]
|
|
rule = "Path(`/`)"
|
|
|
|
[http.middlewares]
|
|
[http.middlewares.ratelimit.rateLimit]
|
|
average = 100
|
|
burst = 1
|
|
|
|
[http.services]
|
|
[http.services.service1]
|
|
[http.services.service1.loadBalancer]
|
|
passHostHeader = true
|
|
[[http.services.service1.loadBalancer.servers]]
|
|
url = "http://{{.Server1}}:80"
|