traefik/integration/fixtures/tracing/simple-zipkin.toml

73 lines
1.8 KiB
TOML
Raw Normal View History

[global]
2019-07-01 09:30:05 +00:00
checkNewVersion = false
sendAnonymousUsage = false
[log]
2019-07-01 09:30:05 +00:00
level = "DEBUG"
2018-01-24 10:57:06 +00:00
[api]
2018-01-10 16:48:04 +00:00
[entryPoints]
[entryPoints.web]
2018-01-10 16:48:04 +00:00
address = ":8000"
[tracing]
2018-04-11 14:30:04 +00:00
servicename = "tracing"
2019-06-27 22:16:04 +00:00
[tracing.zipkin]
httpEndpoint = "http://{{.IP}}:9411/api/v1/spans"
debug = true
2018-04-11 14:30:04 +00:00
[providers.file]
filename = "{{ .SelfFilename }}"
2019-07-01 09:30:05 +00:00
## dynamic configuration ##
2018-01-10 16:48:04 +00:00
[http.routers]
[http.routers.router1]
2019-07-01 09:30:05 +00:00
service = "service1"
middlewares = ["retry", "ratelimit"]
rule = "Path(`/ratelimit`)"
[http.routers.router2]
2019-07-01 09:30:05 +00:00
service = "service2"
middlewares = ["retry"]
rule = "Path(`/retry`)"
[http.routers.router3]
2019-07-01 09:30:05 +00:00
service = "service3"
middlewares = ["retry", "basic-auth"]
rule = "Path(`/auth`)"
2018-04-11 14:30:04 +00:00
[http.middlewares]
[http.middlewares.retry.retry]
2019-07-01 09:30:05 +00:00
attempts = 3
[http.middlewares.basic-auth.basicAuth]
users = ["test:$apr1$H6uskkkW$IgXLP6ewTrSuBkTrqE8wj/", "test2:$apr1$d9hr9HBB$4HxwgUir3HP4EsggP/QNo0"]
[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
2018-11-14 09:18:03 +00:00
[http.services]
[http.services.service1]
2019-07-01 09:30:05 +00:00
[http.services.service1.loadBalancer]
2018-11-14 09:18:03 +00:00
passHostHeader = true
2019-07-01 09:30:05 +00:00
[[http.services.service1.loadBalancer.servers]]
url = "http://{{.WhoAmiIP}}:{{.WhoAmiPort}}"
2018-11-14 09:18:03 +00:00
[http.services.service2]
2018-01-10 16:48:04 +00:00
passHostHeader = true
2019-07-01 09:30:05 +00:00
[http.services.service2.loadBalancer]
[[http.services.service2.loadBalancer.servers]]
url = "http://{{.WhoAmiIP}}:{{.WhoAmiPort}}"
2018-11-14 09:18:03 +00:00
[http.services.service3]
2018-01-10 16:48:04 +00:00
passHostHeader = true
2019-07-01 09:30:05 +00:00
[http.services.service3.loadBalancer]
[[http.services.service3.loadBalancer.servers]]
url = "http://{{.WhoAmiIP}}:{{.WhoAmiPort}}"