Allow file provider to load config from files in a directory.

This commit is contained in:
Richard Shepherd 2017-05-26 14:32:03 +01:00 committed by Ludovic Fernandez
parent 73e10c96cc
commit 4128c1ac8d
8 changed files with 442 additions and 45 deletions

View 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"

View 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"

View file

@ -0,0 +1,10 @@
defaultEntryPoints = ["http"]
logLevel = "DEBUG"
[entryPoints]
[entryPoints.http]
address = ":8000"
[file]
directory = "fixtures/file/dir/"