2018-11-27 16:42:04 +00:00
|
|
|
[log]
|
2015-11-21 01:59:49 +00:00
|
|
|
logLevel = "DEBUG"
|
|
|
|
|
|
|
|
|
2016-02-01 10:07:05 +00:00
|
|
|
[entryPoints]
|
|
|
|
[entryPoints.https]
|
|
|
|
address = ":4443"
|
|
|
|
[entryPoints.https.tls]
|
2015-11-21 01:59:49 +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]
|
2015-11-21 01:59:49 +00:00
|
|
|
|
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`)"
|
2018-11-14 09:18:03 +00:00
|
|
|
|
|
|
|
[Services]
|
|
|
|
[Services.service1]
|
|
|
|
[Services.service1.LoadBalancer]
|
|
|
|
|
|
|
|
[[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"
|