2019-05-06 15:16:03 +00:00
|
|
|
[global]
|
2019-07-01 09:30:05 +00:00
|
|
|
checkNewVersion = false
|
|
|
|
sendAnonymousUsage = false
|
2019-05-06 15:16:03 +00:00
|
|
|
|
|
|
|
[log]
|
2019-07-01 09:30:05 +00:00
|
|
|
level = "DEBUG"
|
2019-05-06 15:16:03 +00:00
|
|
|
|
|
|
|
[entryPoints]
|
|
|
|
[entryPoints.web]
|
|
|
|
address = ":8000"
|
|
|
|
|
2019-07-15 08:22:03 +00:00
|
|
|
[providers.file]
|
|
|
|
filename = "{{ .SelfFilename }}"
|
2019-07-01 09:30:05 +00:00
|
|
|
|
|
|
|
## dynamic configuration ##
|
2019-05-06 15:16:03 +00:00
|
|
|
|
|
|
|
[http.routers]
|
|
|
|
[http.routers.router1]
|
|
|
|
rule = "Host(`test.localhost`)"
|
|
|
|
service = "service1"
|
|
|
|
|
|
|
|
[http.routers.router2]
|
|
|
|
rule = "Host(`test.foo.localhost.`)"
|
|
|
|
service = "service1"
|
|
|
|
|
|
|
|
[http.services]
|
2019-07-01 09:30:05 +00:00
|
|
|
[http.services.service1.loadBalancer]
|
|
|
|
[[http.services.service1.loadBalancer.servers]]
|
|
|
|
url = "{{.Server}}"
|