9ebe3c38b2
Co-authored-by: jbdoumenjou <jb.doumenjou@gmail.com>
47 lines
1 KiB
TOML
47 lines
1 KiB
TOML
[log]
|
|
logLevel = "DEBUG"
|
|
|
|
[entryPoints]
|
|
[entryPoints.https]
|
|
address = ":4443"
|
|
[entryPoints.https.tls]
|
|
[entryPoints.https.tls.ClientCA]
|
|
files = ["fixtures/https/clientca/ca1and2.crt"]
|
|
|
|
[api]
|
|
|
|
[providers]
|
|
[providers.file]
|
|
|
|
[Routers]
|
|
[Routers.router1]
|
|
Service = "service1"
|
|
Rule = "Host(`snitest.com`)"
|
|
[Routers.router2]
|
|
Service = "service2"
|
|
Rule = "Host(`snitest.org`)"
|
|
|
|
[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
|
|
|
|
[[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"
|