2016-06-18 19:11:34 +00:00
|
|
|
logLevel = "DEBUG"
|
|
|
|
|
|
|
|
defaultEntryPoints = ["https"]
|
|
|
|
|
|
|
|
[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"]
|
|
|
|
optional = true
|
2016-06-18 19:11:34 +00:00
|
|
|
[[entryPoints.https.tls.certificates]]
|
2017-11-09 11:16:03 +00:00
|
|
|
certFile = "fixtures/https/snitest.com.cert"
|
|
|
|
keyFile = "fixtures/https/snitest.com.key"
|
2016-06-18 19:11:34 +00:00
|
|
|
[[entryPoints.https.tls.certificates]]
|
2017-11-09 11:16:03 +00:00
|
|
|
certFile = "fixtures/https/snitest.org.cert"
|
|
|
|
keyFile = "fixtures/https/snitest.org.key"
|
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
|
|
|
|
2016-06-18 19:11:34 +00:00
|
|
|
[file]
|
|
|
|
|
|
|
|
[backends]
|
|
|
|
[backends.backend1]
|
|
|
|
[backends.backend1.servers.server1]
|
|
|
|
url = "http://127.0.0.1:9010"
|
|
|
|
[backends.backend2]
|
|
|
|
[backends.backend2.servers.server1]
|
|
|
|
url = "http://127.0.0.1:9020"
|
|
|
|
|
|
|
|
[frontends]
|
|
|
|
[frontends.frontend1]
|
|
|
|
backend = "backend1"
|
|
|
|
[frontends.frontend1.routes.test_1]
|
|
|
|
rule = "Host:snitest.com"
|
|
|
|
[frontends.frontend2]
|
|
|
|
backend = "backend2"
|
|
|
|
[frontends.frontend2.routes.test_2]
|
|
|
|
rule = "Host:snitest.org"
|