summaryrefslogtreecommitdiff
path: root/lighttpd.conf
blob: d874a0172e2bd40936d9c721fc8e03f32b220eb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
server.document-root = var.CWD + "/www"
server.port = 8080
mimetype.assign = (
  ".html" => "text/html; charset=utf-8",
  ".js" => "text/javascript",
  ".css" => "text/css",
  ".txt" => "text/plain",
  ".jpg" => "image/jpeg",
  ".png" => "image/png",
  ".webp" => "image/webp",
  ".webm" => "video/webm",
  ".mkv" => "video/x-matroska",
  ".ogg" => "audio/ogg",
  ".woff" => "application/font-woff"
)
index-file.names = ("index.html")
server.modules = ( "mod_expire", "mod_compress" )
dir-listing.activate = "enable"
compress.cache-dir = "/tmp/lighttpd-compress"
compress.filetype = ("text/html", "text/plain", "text/css", "text/javascript")
expire.url = ("/dump/" => "access plus 1 years")