summaryrefslogtreecommitdiff
path: root/config.lua
diff options
context:
space:
mode:
authorJohn Turner <jturner.usa@gmail.com>2026-03-05 01:01:39 -0500
committerJohn Turner <jturner.usa@gmail.com>2026-03-05 01:01:39 -0500
commit7fe3b3cdbb18ff2bbfbf3f91a166d8d32ea0ea87 (patch)
tree848ec55c9ff93fe32e05ab6737e93401bbc0fde9 /config.lua
parent34c9316e052a48fa95374936801347755f40f3b7 (diff)
downloadhttpd-7fe3b3cdbb18ff2bbfbf3f91a166d8d32ea0ea87.tar.gz
stop tracking config.lua
Diffstat (limited to 'config.lua')
-rw-r--r--config.lua28
1 files changed, 0 insertions, 28 deletions
diff --git a/config.lua b/config.lua
deleted file mode 100644
index ea370a9..0000000
--- a/config.lua
+++ /dev/null
@@ -1,28 +0,0 @@
-http = {}
-
-http.bind = "localhost:8080"
-http.root = "/tmp/www"
-
-http.handlers = {}
-
-http.handlers["GET"] = function(request)
- if string.match(request.path, "^/lua") then
- local payload = "hello world"
-
- return {
- handler = "lua",
- status = 200,
- content = payload,
- headers = {
- ["content-type"] = "text/plain",
- ["content-length"] = tostring(#payload)
- }
- }
- else
- return {
- handler = "staticfile",
- path = string.format("%s/%s", http.root, request.path),
- mime = "text/plain"
- }
- end
-end