middleware/root: add it (#330)

This PR adds the *root* middleware that specifies a path where
all zone file (the *file* middleware is the only consumer now) can
be found. It works the same as in Caddy.

Documentation can be found in the README.md of the middleware.

Fixes #307
This commit is contained in:
Miek Gieben
2016-10-11 20:42:28 +01:00
committed by GitHub
parent baea5eef2f
commit 710c9b111f
10 changed files with 184 additions and 3 deletions

View File

@@ -13,7 +13,8 @@ zonefile.
file DBFILE [ZONES...]
~~~
* **DBFILE** the database file to read and parse.
* **DBFILE** the database file to read and parse. If the path is relative the path from the *root*
directive will be prepended to it.
* **ZONES** zones it should be authoritative for. If empty, the zones from the configuration block
are used.