diff options
author | Melody Horn <melody@boringcactus.com> | 2022-05-01 19:59:33 -0600 |
---|---|---|
committer | Melody Horn <melody@boringcactus.com> | 2022-05-01 19:59:33 -0600 |
commit | f069a979ddc457ccd2d1e9dd26eca38031a86661 (patch) | |
tree | f7f8301fc40a1b0c71835c684560e8a6578cceeb /tests/config-example | |
parent | 3817ec811d76b91d3d4924003a4d48d0cd43a576 (diff) | |
download | narchttpd-config-kdl.tar.gz narchttpd-config-kdl.zip |
kdl configconfig-kdl
Diffstat (limited to 'tests/config-example')
-rw-r--r-- | tests/config-example/narchttpd.kdl | 21 | ||||
-rw-r--r-- | tests/config-example/narchttpd.toml | 20 |
2 files changed, 21 insertions, 20 deletions
diff --git a/tests/config-example/narchttpd.kdl b/tests/config-example/narchttpd.kdl new file mode 100644 index 0000000..ca24846 --- /dev/null +++ b/tests/config-example/narchttpd.kdl @@ -0,0 +1,21 @@ +http true port=1337 + +domain "domain.test" "alternate-domain.test" { + static { + root "./domain.test" + } +} + +domain "sub.domain.test" { + static { + root "./sub.domain.test" + } +} + +domain "dynamic.test" { + proxy-child { + command "python -m http.server 6970" + in-dir "./dynamic.test" + port 6970 + } +} diff --git a/tests/config-example/narchttpd.toml b/tests/config-example/narchttpd.toml deleted file mode 100644 index a5876c6..0000000 --- a/tests/config-example/narchttpd.toml +++ /dev/null @@ -1,20 +0,0 @@ -http_ports = [1337] -https_ports = [] - -["domain.test"] -mode = "static" -root = "./domain.test" - -["alternate-domain.test"] -mode = "static" -root = "./domain.test" - -["sub.domain.test"] -mode = "static" -root = "./sub.domain.test" - -["dynamic.test"] -mode = "proxy-child" -command = "python -m http.server 6970" -in_dir = "./dynamic.test" -port = 6970 |