summaryrefslogtreecommitdiff
path: root/config.lua
diff options
context:
space:
mode:
authorJohn Turner <jturner.usa@gmail.com>2026-03-01 17:34:34 -0500
committerJohn Turner <jturner.usa@gmail.com>2026-03-01 17:34:34 -0500
commit3c4208abd325d317c7524ba0dc3b701edfa9ebf8 (patch)
tree197a3d46fcad3ed8d7f3b3d0d0c0fc3f79e3a204 /config.lua
parent06476ea44ff27bd9b4af2aa5bcf715fe9034db9a (diff)
downloadhttpd-3c4208abd325d317c7524ba0dc3b701edfa9ebf8.tar.gz
impl basic static file serverHEADmaster
Diffstat (limited to 'config.lua')
-rw-r--r--config.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/config.lua b/config.lua
new file mode 100644
index 0000000..6ca8ff5
--- /dev/null
+++ b/config.lua
@@ -0,0 +1,13 @@
+http = {}
+
+http.bind = "localhost:8080"
+
+http.handlers = {}
+
+http.handlers["GET"] = function(request)
+ return {
+ handler = "staticfile",
+ path = "/tmp/foo.txt",
+ mime = "text/plain"
+ }
+end