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
|
|
|
|
|
|
|
[log]
|
2019-07-01 09:30:05 +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]
|
2019-07-01 09:30:05 +00:00
|
|
|
[providers.file]
|
|
|
|
|
|
|
|
## dynamic configuration ##
|
2019-04-02 08:40:04 +00:00
|
|
|
|
|
|
|
[http.routers]
|
|
|
|
[http.routers.router1]
|
|
|
|
rule = "Host(`test.localhost`)"
|
|
|
|
service = "service1"
|
|
|
|
|
|
|
|
[http.middlewares]
|
2019-07-01 09:30:05 +00:00
|
|
|
[http.middlewares.cors.headers]
|
|
|
|
accessControlAllowMethods= ["GET", "OPTIONS", "PUT"]
|
|
|
|
accessControlAllowOrigin = "origin-list-or-null"
|
|
|
|
accessControlMaxAge = 100
|
|
|
|
addVaryHeader = true
|
2019-04-02 08:40:04 +00:00
|
|
|
|
|
|
|
[http.services]
|
2019-07-01 09:30:05 +00:00
|
|
|
[http.services.service1.loadBalancer]
|
|
|
|
[[http.services.service1.loadBalancer.servers]]
|
2019-04-02 08:40:04 +00:00
|
|
|
url = "http://172.17.0.2:80"
|