traefik/integration/fixtures/simple_muxer.toml

46 lines
898 B
TOML
Raw Permalink Normal View History

2022-06-27 13:16:08 +00:00
[global]
checkNewVersion = false
sendAnonymousUsage = false
[log]
level = "DEBUG"
noColor = true
2022-06-27 13:16:08 +00:00
[entryPoints]
[entryPoints.webHost]
address = ":8000"
[entryPoints.webHostRegexp]
address = ":8001"
[entryPoints.webQuery]
address = ":8002"
[api]
insecure = true
[providers.file]
filename = "{{ .SelfFilename }}"
## dynamic configuration ##
[http.routers]
[http.routers.router1]
entryPoints = ["webHost"]
service = "service1"
rule = "!Host(`test.localhost`)"
[http.routers.router2]
entryPoints = ["webHostRegexp"]
service = "service1"
rule = "!HostRegexp(`test\\.localhost`)"
2022-06-27 13:16:08 +00:00
[http.routers.router3]
entryPoints = ["webQuery"]
service = "service1"
rule = "!QueryRegexp(`foo`, `.*`)"
2022-06-27 13:16:08 +00:00
[http.services]
[http.services.service1.loadBalancer]
[[http.services.service1.loadBalancer.servers]]
url = "{{ .Server1 }}"