From 3c4208abd325d317c7524ba0dc3b701edfa9ebf8 Mon Sep 17 00:00:00 2001 From: John Turner Date: Sun, 1 Mar 2026 17:34:34 -0500 Subject: impl basic static file server --- config.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 config.lua (limited to 'config.lua') 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 -- cgit v1.2.3