From 02814d2803a39a0fb14893e5cf30d35609ee67de Mon Sep 17 00:00:00 2001 From: anon Date: Sat, 5 Jul 2025 13:11:35 +0200 Subject: init --- lighttpd.conf | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 lighttpd.conf (limited to 'lighttpd.conf') diff --git a/lighttpd.conf b/lighttpd.conf new file mode 100644 index 0000000..921467d --- /dev/null +++ b/lighttpd.conf @@ -0,0 +1,28 @@ +# @BAKE lighttpd -D -f $@ +server.document-root = var.CWD +server.port = "8080" + +server.modules += ( "mod_rewrite" ) +url.rewrite-once = ( + "^/out/.*" => "$0", + ".*" => "/upchud.tcl" +) + +# This limits the maximum upload size (in kbytes). +server.max-request-size = 204800 # 200 MiB + +# This makes sure people cant inject Tcl scripts +server.modules += ( "mod_cgi" ) +$HTTP["url"] == "/upchud.tcl" { + cgi.assign = ( ".tcl" => "" ) +} + + +debug.log-request-header = 1 +debug.log-file-not-found = 1 +debug.log-condition-handling = 1 +debug.log-request-handling = 1 +debug.log-state-handling = 1 +debug.log-response-header = 1 + +server.errorlog = "errors.log" -- cgit v1.2.3