-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlighttpd.conf
43 lines (36 loc) · 1.19 KB
/
lighttpd.conf
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
server.modules = (
"mod_indexfile",
"mod_access",
"mod_openssl",
"mod_compress",
"mod_wstunnel",
"mod_cgi",
)
server.document-root = "/home/pi/7print/webUI/public"
server.errorlog = "/var/log/lighttpd/error.log"
server.pid-file = "/var/run/lighttpd.pid"
server.username = "www-data"
server.groupname = "www-data"
server.port = 57777
ssl.engine = "enable"
ssl.pemfile = "/home/pi/7print/ssl/ssl.pem"
index-file.names = ( "index.html" )
url.access-deny = ( "~", ".inc", ".py", ".pyc" )
compress.cache-dir = "/var/cache/lighttpd/compress/"
compress.filetype = ( "application/javascript", "text/css", "text/html", "text/plain" )
mimetype.assign = (
".html" => "text/html",
".txt" => "text/plain",
".jpg" => "image/jpeg",
".png" => "image/png",
".js" => "application/javascript",
".css" => "text/css"
)
$HTTP["url"] =~ "^/socket" {
wstunnel.server = ( "" => ( ( "host" => "127.0.0.1", "port" => "7770" ) ) )
wstunnel.frame-type = "binary"
server.max-read-idle = 3600
}
$HTTP["url"] =~ "^/api/" {
cgi.assign = ( "" => "" )
}