Allow file provider to load config from files in a directory.
This commit is contained in:
parent
73e10c96cc
commit
4128c1ac8d
8 changed files with 442 additions and 45 deletions
11
integration/fixtures/file/dir/simple1.toml
Normal file
11
integration/fixtures/file/dir/simple1.toml
Normal file
|
@ -0,0 +1,11 @@
|
|||
# rules
|
||||
[backends]
|
||||
[backends.backend1]
|
||||
[backends.backend1.servers.server1]
|
||||
url = "http://172.17.0.2:80"
|
||||
|
||||
[frontends]
|
||||
[frontends.frontend1]
|
||||
backend = "backend1"
|
||||
[frontends.frontend1.routes.test_1]
|
||||
rule = "Path:/test1"
|
11
integration/fixtures/file/dir/simple2.toml
Normal file
11
integration/fixtures/file/dir/simple2.toml
Normal file
|
@ -0,0 +1,11 @@
|
|||
# rules
|
||||
[backends]
|
||||
[backends.backend2]
|
||||
[backends.backend2.servers.server1]
|
||||
url = "http://172.17.0.2:80"
|
||||
|
||||
[frontends]
|
||||
[frontends.frontend2]
|
||||
backend = "backend2"
|
||||
[frontends.frontend2.routes.test_2]
|
||||
rule = "Path:/test2"
|
10
integration/fixtures/file/directory.toml
Normal file
10
integration/fixtures/file/directory.toml
Normal file
|
@ -0,0 +1,10 @@
|
|||
defaultEntryPoints = ["http"]
|
||||
|
||||
logLevel = "DEBUG"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.http]
|
||||
address = ":8000"
|
||||
|
||||
[file]
|
||||
directory = "fixtures/file/dir/"
|
Loading…
Add table
Add a link
Reference in a new issue