2019-04-09 15:24:05 +00:00
|
|
|
[global]
|
|
|
|
checkNewVersion = false
|
|
|
|
sendAnonymousUsage = false
|
|
|
|
|
|
|
|
[log]
|
2019-04-16 13:30:09 +00:00
|
|
|
level = "DEBUG"
|
2019-04-02 08:40:04 +00:00
|
|
|
|
2019-04-15 09:14:05 +00:00
|
|
|
[entryPoints]
|
|
|
|
[entryPoints.web]
|
2019-04-02 08:40:04 +00:00
|
|
|
address = ":8000"
|
|
|
|
|
|
|
|
[providers]
|
|
|
|
[providers.file]
|
|
|
|
|
|
|
|
[http.routers]
|
|
|
|
[http.routers.router1]
|
|
|
|
rule = "Host(`test.localhost`)"
|
|
|
|
service = "service1"
|
|
|
|
|
|
|
|
[http.middlewares]
|
|
|
|
[http.middlewares.cors.Headers]
|
|
|
|
AccessControlAllowMethods= ["GET", "OPTIONS", "PUT"]
|
|
|
|
AccessControlAllowOrigin = "origin-list-or-null"
|
|
|
|
AccessControlMaxAge = 100
|
|
|
|
AddVaryHeader = true
|
|
|
|
|
|
|
|
[http.services]
|
|
|
|
[http.services.service1.loadbalancer]
|
|
|
|
[[http.services.service1.loadbalancer.servers]]
|
|
|
|
url = "http://172.17.0.2:80"
|