diff options
author | Melody Horn <melody@boringcactus.com> | 2021-11-12 17:26:25 -0700 |
---|---|---|
committer | Melody Horn <melody@boringcactus.com> | 2021-11-12 17:26:25 -0700 |
commit | fad6b7b755b788ca0d9113999faa8fb0d6f89ad0 (patch) | |
tree | f6d76660a219fb78bf2e476b2fc5a7430da8ce47 /tests/config-example/narchttpd.rhai | |
parent | 8556590d77ad9e0729c869f75a3aa202d24b96d5 (diff) | |
download | narchttpd-fad6b7b755b788ca0d9113999faa8fb0d6f89ad0.tar.gz narchttpd-fad6b7b755b788ca0d9113999faa8fb0d6f89ad0.zip |
some bullshit thrown together for testing
Diffstat (limited to 'tests/config-example/narchttpd.rhai')
-rw-r--r-- | tests/config-example/narchttpd.rhai | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/config-example/narchttpd.rhai b/tests/config-example/narchttpd.rhai new file mode 100644 index 0000000..c876bc1 --- /dev/null +++ b/tests/config-example/narchttpd.rhai @@ -0,0 +1,17 @@ +http_ports = [1337]; +https_ports = []; + +domain(["domain.test", "alternate-domain.test"], serve_static(#{ + root: "./domain.test", +})); +domain("sub.domain.test", serve_static(#{ + root: "./sub.domain.test", +})); +domain("dynamic.test", proxy_child(#{ + command: |port| "python -m http.server " + port, + in_dir: "./dynamic.test", +})); +domain("function.test", |request| #{ + status: 200, + body: "OK", +}); |