-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlighttpd.config
68 lines (65 loc) · 2.18 KB
/
lighttpd.config
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
server.port = 8081
server.document-root = env.PWD
server.modules = ("mod_proxy", "mod_openssl", "mod_setenv", "mod_accesslog")
ssl.engine = "enable"
ssl.pemfile = env.PWD + "/certs/certificate.pem"
$HTTP["url"] =~ "^/llm-web-fe" {
setenv.add-response-header = (
"Access-Control-Allow-Origin" => "*",
"Access-Control-Allow-Methods" => "GET,POST",
"Access-Control-Allow-Headers" => "Origin, X-Requested-With, Content-Type, Accept"
)
}
$HTTP["url"] =~ "^/api($|/)" {
proxy.debug = 1
proxy.server = (
"" => (
(
"host" => "127.0.0.1",
"port" => 1337
)
)
)
}
index-file.names = ( "index.html" )
mimetype.assign = (
".wasm"=> "application/wasm",
".html" => "text/html",
".css" => "text/css",
".js" => "application/javascript",
".json" => "application/json",
".xml" => "application/xml",
".rss" => "application/rss+xml",
".atom" => "application/atom+xml",
".jpg" => "image/jpeg",
".jpeg" => "image/jpeg",
".png" => "image/png",
".gif" => "image/gif",
".bmp" => "image/bmp",
".ico" => "image/x-icon",
".svg" => "image/svg+xml",
".pdf" => "application/pdf",
".doc" => "application/msword",
".docx" => "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
".xlsx" => "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
".ppt" => "application/vnd.ms-powerpoint",
".pptx" => "application/vnd.openxmlformats-officedocument.presentationml.presentation",
".mp3" => "audio/mpeg",
".wav" => "audio/wav",
".ogg" => "audio/ogg",
".mp4" => "video/mp4",
".avi" => "video/x-msvideo",
".mpeg" => "video/mpeg",
".mov" => "video/quicktime",
".zip" => "application/zip",
".tar" => "application/x-tar",
".gz" => "application/gzip",
".bz2" => "application/x-bzip",
".7z" => "application/x-7z-compressed",
)
server.errorlog = env.PWD + "/error.log"
server.breakagelog = env.PWD + "/breakage.log"
accesslog.filename = env.PWD + "/access.log"
debug.log-request-handling = "enable"
debug.log-file-not-found = "enable"
debug.log-condition-handling = "enable"