2019-04-09 17:24:05 +02:00
[ global ]
2019-07-01 11:30:05 +02:00
checkNewVersion = false
sendAnonymousUsage = false
2019-04-09 17:24:05 +02:00
[ log ]
2019-07-01 11:30:05 +02:00
level = "DEBUG"
2019-04-09 17:24:05 +02:00
2019-04-15 11:14:05 +02:00
[ entryPoints ]
[ entryPoints . tcp ]
2019-03-14 09:30:04 +01:00
address = ":8093"
[ api ]
2019-09-06 15:08:04 +02:00
insecure = true
2019-03-14 09:30:04 +01:00
[ providers . file ]
2019-07-15 10:22:03 +02:00
filename = "{{ .SelfFilename }}"
2019-03-14 09:30:04 +01:00
2019-07-01 11:30:05 +02:00
## dynamic configuration ##
2019-03-14 09:30:04 +01:00
2019-07-01 11:30:05 +02:00
[ http ]
[ http . routers ]
[ http . routers . my-router ]
rule = "Path(`/test`)"
service = "whoami"
entrypoint = [ "tcp" ]
2019-03-14 09:30:04 +01:00
[ http . routers . my-https-router ]
2019-07-01 11:30:05 +02:00
entryPoints = [ "tcp" ]
rule = "Path(`/whoami/`)"
service = "whoami"
[ http . routers . my-https-router . tls ]
2019-03-14 09:30:04 +01:00
2019-07-01 11:30:05 +02:00
[ http . services ]
[ http . services . whoami . loadBalancer ]
[ [ http . services . whoami . loadBalancer . servers ] ]
url = "http://localhost:8085"
2019-03-14 09:30:04 +01:00
[ tcp ]
2019-07-01 11:30:05 +02:00
[ tcp . routers ]
[ tcp . routers . to-whoami-a ]
rule = "HostSNI(`whoami-a.test`)"
service = "whoami-a"
entryPoints = [ "tcp" ]
[ tcp . routers . to-whoami-a . tls ]
passthrough = true
2019-03-14 09:30:04 +01:00
2019-07-01 11:30:05 +02:00
[ tcp . routers . to-whoami-b ]
rule = "HostSNI(`whoami-b.test`)"
service = "whoami-b"
entryPoints = [ "tcp" ]
[ tcp . routers . to-whoami-b . tls ]
passthrough = true
2019-03-14 09:30:04 +01:00
2019-07-01 11:30:05 +02:00
[ tcp . routers . to-whoami-no-cert ]
rule = "HostSNI(`whoami-c.test`)"
service = "whoami-no-cert"
entryPoints = [ "tcp" ]
[ tcp . routers . to-whoami-no-cert . tls ]
2019-03-14 09:30:04 +01:00
2019-07-01 11:30:05 +02:00
[ tcp . services . whoami-a . loadBalancer ]
[ [ tcp . services . whoami-a . loadBalancer . servers ] ]
address = "localhost:8081"
2019-03-14 09:30:04 +01:00
2019-07-01 11:30:05 +02:00
[ tcp . services . whoami-b . loadBalancer ]
[ [ tcp . services . whoami-b . loadBalancer . servers ] ]
address = "localhost:8082"
2019-03-14 09:30:04 +01:00
2019-07-01 11:30:05 +02:00
[ tcp . services . whoami-no-cert . loadBalancer ]
[ [ tcp . services . whoami-no-cert . loadBalancer . servers ] ]
address = "localhost:8083"
2019-03-14 09:30:04 +01:00
2019-06-27 23:58:03 +02:00
[ [ tls . certificates ] ]
2019-03-14 09:30:04 +01:00
certFile = "fixtures/tcp/whoami-c.crt"
keyFile = "fixtures/tcp/whoami-c.key"