blob: c876bc11ce8a0a5207a69928584ef3371c1dc790 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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",
});
|