aboutsummaryrefslogtreecommitdiff
path: root/tests/config-example
diff options
context:
space:
mode:
Diffstat (limited to 'tests/config-example')
-rw-r--r--tests/config-example/narchttpd.kdl21
-rw-r--r--tests/config-example/narchttpd.toml20
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