2019-04-09 15:24:05 +00:00
|
|
|
[global]
|
2019-07-01 09:30:05 +00:00
|
|
|
checkNewVersion = false
|
|
|
|
sendAnonymousUsage = false
|
2019-04-09 15:24:05 +00:00
|
|
|
|
2018-11-27 16:42:04 +00:00
|
|
|
[log]
|
2019-07-01 09:30:05 +00:00
|
|
|
level = "DEBUG"
|
2016-06-18 19:11:34 +00:00
|
|
|
|
2019-04-15 09:14:05 +00:00
|
|
|
[entryPoints]
|
|
|
|
[entryPoints.web-secure]
|
2019-07-01 09:30:05 +00:00
|
|
|
address = ":4443"
|
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
|
|
|
|
2019-07-15 08:22:03 +00:00
|
|
|
[providers.file]
|
|
|
|
filename = "{{ .SelfFilename }}"
|
2019-07-01 09:30:05 +00:00
|
|
|
|
|
|
|
## dynamic configuration ##
|
2018-11-27 16:42:04 +00:00
|
|
|
|
2019-03-14 08:30:04 +00:00
|
|
|
[http.routers]
|
|
|
|
[http.routers.router1]
|
2019-07-01 09:30:05 +00:00
|
|
|
service = "service1"
|
|
|
|
rule = "Host(`snitest.com`)"
|
2019-03-14 08:30:04 +00:00
|
|
|
[http.routers.router1.tls]
|
|
|
|
[http.routers.router2]
|
2019-07-01 09:30:05 +00:00
|
|
|
service = "service2"
|
|
|
|
rule = "Host(`snitest.org`)"
|
2019-03-14 08:30:04 +00:00
|
|
|
[http.routers.router2.tls]
|
2016-06-18 19:11:34 +00:00
|
|
|
|
2019-03-14 08:30:04 +00:00
|
|
|
[http.services]
|
|
|
|
[http.services.service1]
|
2019-07-01 09:30:05 +00:00
|
|
|
[http.services.service1.loadBalancer]
|
|
|
|
[[http.services.service1.loadBalancer.servers]]
|
|
|
|
url = "http://127.0.0.1:9010"
|
2018-11-14 09:18:03 +00:00
|
|
|
|
2019-03-14 08:30:04 +00:00
|
|
|
[http.services.service2]
|
2019-07-01 09:30:05 +00:00
|
|
|
[http.services.service2.loadBalancer]
|
|
|
|
[[http.services.service2.loadBalancer.servers]]
|
|
|
|
url = "http://127.0.0.1:9020"
|
2018-11-27 16:42:04 +00:00
|
|
|
|
2019-06-27 21:58:03 +00:00
|
|
|
[[tls.certificates]]
|
|
|
|
certFile = "fixtures/https/snitest.com.cert"
|
|
|
|
keyFile = "fixtures/https/snitest.com.key"
|
2018-11-27 16:42:04 +00:00
|
|
|
|
2019-06-27 21:58:03 +00:00
|
|
|
[[tls.certificates]]
|
|
|
|
certFile = "fixtures/https/snitest.org.cert"
|
|
|
|
keyFile = "fixtures/https/snitest.org.key"
|
2019-03-14 08:30:04 +00:00
|
|
|
|
2019-06-27 21:58:03 +00:00
|
|
|
[tls.options]
|
2019-07-12 15:50:04 +00:00
|
|
|
[tls.options.default.clientAuth]
|
|
|
|
caFiles = ["fixtures/https/clientca/ca1.crt", "fixtures/https/clientca/ca2.crt"]
|
|
|
|
clientAuthType = "RequireAndVerifyClientCert"
|