summaryrefslogtreecommitdiff
path: root/WebInterface/wasm/webhogg/lighttpd.config
blob: 4072b3006d467ea283399623e507cacaf8240ce3 (plain)
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
server.http-parseopts = (
    "header-strict"            => "enable",
    "host-strict"              => "enable",
    "host-normalize"           => "enable",
    "url-normalize"            => "enable",
    "url-normalize-unreserved" => "enable",
    "url-normalize-required"   => "enable",
    "url-ctrls-reject"         => "enable",
    "url-path-2f-decode"       => "enable",
    "url-path-dotseg-remove"   => "enable",
    "url-query-20-plus"        => "enable"
)

server.modules += ( "mod_setenv" )

server.document-root = "/home/jan/projects/DiscoBot/WebInterface/wasm/webhogg"
server.port = 8080
dir-listing.activate    = "enable"
index-file.names    = ( "index.html" )
mimetype.assign     = (
    ".html" => "text/html",
    ".txt" => "text/plain",
    ".css" => "text/css",
    ".js" => "application/javascript",
    ".jpg" => "image/jpeg",
    ".jpeg" => "image/jpeg",
    ".gif" => "image/gif",
    ".png" => "image/png",
    ".wasm" => "application/wasm",
    "" => "application/octet-stream"
)
sentenv.add-response-header = (
    "Content-Security-Policy" => "worker-src localhost:*"
)