2018-11-27 16:42:04 +00:00
|
|
|
[log]
|
2016-06-18 19:11:34 +00:00
|
|
|
logLevel = "DEBUG"
|
|
|
|
|
|
|
|
|
|
|
|
[entryPoints]
|
|
|
|
[entryPoints.https]
|
|
|
|
address = ":4443"
|
|
|
|
[entryPoints.https.tls]
|
2017-11-10 09:30:04 +00:00
|
|
|
[entryPoints.https.tls.ClientCA]
|
|
|
|
files = ["fixtures/https/clientca/ca1.crt", "fixtures/https/clientca/ca2.crt"]
|
|
|
|
optional = false
|
2016-06-18 19:11:34 +00:00
|
|
|
|
2018-01-11 08:46:03 +00:00
|
|
|
[api]
|
2017-05-17 13:22:44 +00:00
|
|
|
|
2018-11-27 16:42:04 +00:00
|
|
|
[providers]
|
|
|
|
[providers.file]
|
|
|
|
|
2018-11-14 09:18:03 +00:00
|
|
|
[Routers]
|
|
|
|
[Routers.router1]
|
|
|
|
Service = "service1"
|
2019-01-30 15:24:07 +00:00
|
|
|
Rule = "Host(`snitest.com`)"
|
2018-11-14 09:18:03 +00:00
|
|
|
[Routers.router2]
|
|
|
|
Service = "service2"
|
2019-01-30 15:24:07 +00:00
|
|
|
Rule = "Host(`snitest.org`)"
|
2016-06-18 19:11:34 +00:00
|
|
|
|
2018-11-14 09:18:03 +00:00
|
|
|
[Services]
|
|
|
|
[Services.service1]
|
|
|
|
[Services.service1.LoadBalancer]
|
2016-06-18 19:11:34 +00:00
|
|
|
|
2018-11-14 09:18:03 +00:00
|
|
|
[[Services.service1.LoadBalancer.Servers]]
|
|
|
|
URL = "http://127.0.0.1:9010"
|
|
|
|
Weight = 1
|
|
|
|
[Services.service2]
|
|
|
|
[Services.service2.LoadBalancer]
|
|
|
|
|
|
|
|
[[Services.service2.LoadBalancer.Servers]]
|
|
|
|
URL = "http://127.0.0.1:9020"
|
|
|
|
Weight = 1
|
2018-11-27 16:42:04 +00:00
|
|
|
|
|
|
|
[[tls]]
|
|
|
|
entryPoints = ["https"]
|
|
|
|
[tls.certificate]
|
|
|
|
certFile = "fixtures/https/snitest.com.cert"
|
|
|
|
keyFile = "fixtures/https/snitest.com.key"
|
|
|
|
|
|
|
|
[[tls]]
|
|
|
|
entryPoints = ["https"]
|
|
|
|
[tls.certificate]
|
|
|
|
certFile = "fixtures/https/snitest.org.cert"
|
|
|
|
keyFile = "fixtures/https/snitest.org.key"
|