From f069a979ddc457ccd2d1e9dd26eca38031a86661 Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Sun, 1 May 2022 19:59:33 -0600 Subject: kdl config --- tests/config-example/narchttpd.kdl | 21 +++++++++++++++++++++ tests/config-example/narchttpd.toml | 20 -------------------- 2 files changed, 21 insertions(+), 20 deletions(-) create mode 100644 tests/config-example/narchttpd.kdl delete mode 100644 tests/config-example/narchttpd.toml (limited to 'tests') 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 -- cgit v1.2.3