blob: 921467d0619512f194b75c81a6e8f1110254b6b1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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"
|