2019-07-29 14:12:05 +00:00
|
|
|
[global]
|
|
|
|
checkNewVersion = false
|
|
|
|
sendAnonymousUsage = false
|
|
|
|
|
2020-06-15 10:20:05 +00:00
|
|
|
[api]
|
|
|
|
insecure = true
|
|
|
|
|
2019-07-29 14:12:05 +00:00
|
|
|
[log]
|
|
|
|
level = "DEBUG"
|
2022-11-21 17:36:05 +00:00
|
|
|
noColor = true
|
2019-07-29 14:12:05 +00:00
|
|
|
|
|
|
|
[entryPoints]
|
|
|
|
[entryPoints.web]
|
|
|
|
address = ":8000"
|
|
|
|
|
|
|
|
[providers.file]
|
|
|
|
filename = "{{ .SelfFilename }}"
|
|
|
|
|
|
|
|
## dynamic configuration ##
|
|
|
|
|
|
|
|
[http.routers]
|
|
|
|
[http.routers.router1]
|
|
|
|
rule = "Host(`test.localhost`)"
|
|
|
|
middlewares = ["secure"]
|
|
|
|
service = "service1"
|
|
|
|
|
|
|
|
[http.routers.router2]
|
|
|
|
rule = "Host(`test2.localhost`)"
|
|
|
|
service = "service1"
|
|
|
|
|
2020-06-15 10:20:05 +00:00
|
|
|
[http.routers.router3]
|
|
|
|
rule = "Host(`internal.localhost`)"
|
|
|
|
middlewares = ["secure"]
|
|
|
|
service = "api@internal"
|
|
|
|
|
2019-07-29 14:12:05 +00:00
|
|
|
[http.middlewares]
|
|
|
|
[http.middlewares.secure.headers]
|
2021-06-21 13:16:13 +00:00
|
|
|
permissionsPolicy = "microphone=(),"
|
2019-07-29 14:12:05 +00:00
|
|
|
|
|
|
|
[http.services]
|
|
|
|
[http.services.service1.loadBalancer]
|
|
|
|
[[http.services.service1.loadBalancer.servers]]
|
|
|
|
url = "http://127.0.0.1:9000"
|