traefik/integration/fixtures/tracing/simple.toml

78 lines
1.9 KiB
TOML
Raw Normal View History

[log]
2018-01-10 16:48:04 +00:00
logLevel = "DEBUG"
[global]
2018-01-10 16:48:04 +00:00
debug = true
2018-01-24 10:57:06 +00:00
[api]
2018-01-10 16:48:04 +00:00
[entryPoints]
2018-04-11 14:30:04 +00:00
[entryPoints.http]
2018-01-10 16:48:04 +00:00
address = ":8000"
[tracing]
2018-04-11 14:30:04 +00:00
backend = "{{.TracingBackend}}"
servicename = "tracing"
2018-01-10 16:48:04 +00:00
[tracing.zipkin]
2018-04-11 14:30:04 +00:00
httpEndpoint = "http://{{.ZipkinIP}}:9411/api/v1/spans"
debug = true
2018-01-10 16:48:04 +00:00
[tracing.jaeger]
2018-04-11 14:30:04 +00:00
samplingType = "const"
samplingParam = 1.0
[providers]
[providers.file]
2018-01-10 16:48:04 +00:00
2018-11-14 09:18:03 +00:00
[Routers]
[Routers.router1]
Service = "service1"
Middlewares = ["retry", "ratelimit"]
Rule = "Path:/ratelimit"
[Routers.router2]
Service = "service2"
Middlewares = ["retry"]
Rule = "Path:/retry"
[Routers.router3]
Service = "service3"
Middlewares = ["retry", "basic-auth"]
Rule = "Path:/auth"
2018-04-11 14:30:04 +00:00
2018-11-14 09:18:03 +00:00
[Middlewares]
[Middlewares.retry.retry]
attempts = 3
[Middlewares.basic-auth.BasicAuth]
users = ["test:$apr1$H6uskkkW$IgXLP6ewTrSuBkTrqE8wj/", "test2:$apr1$d9hr9HBB$4HxwgUir3HP4EsggP/QNo0"]
[Middlewares.ratelimit.RateLimit]
extractorfunc = "client.ip"
[Middlewares.ratelimit.RateLimit.rateset.rateset1]
period = "60s"
average = 4
burst = 5
[Middlewares.ratelimit.RateLimit.rateset.rateset2]
period = "3s"
average = 1
burst = 2
[Services]
[Services.service1]
[Services.service1.LoadBalancer]
passHostHeader = true
[[Services.service1.LoadBalancer.Servers]]
URL = "http://{{.WhoAmiIP}}:{{.WhoAmiPort}}"
Weight = 1
[Services.service2]
2018-01-10 16:48:04 +00:00
passHostHeader = true
2018-11-14 09:18:03 +00:00
[Services.service2.LoadBalancer]
[[Services.service2.LoadBalancer.Servers]]
URL = "http://{{.WhoAmiIP}}:{{.WhoAmiPort}}"
Weight = 1
[Services.service3]
2018-01-10 16:48:04 +00:00
passHostHeader = true
2018-11-14 09:18:03 +00:00
[Services.service3.LoadBalancer]
[[Services.service3.LoadBalancer.Servers]]
URL = "http://{{.WhoAmiIP}}:{{.WhoAmiPort}}"
Weight = 1