diff options
author | natrixaeria <janng@gmx.de> | 2019-05-31 14:33:57 +0200 |
---|---|---|
committer | natrixaeria <janng@gmx.de> | 2019-05-31 14:33:57 +0200 |
commit | a8908cac9524fabdcf4232c1394a51848f0335af (patch) | |
tree | 965cef267f4d0f08d9971d6e0ba1987dfd7f5ee0 /WebInterface/wasm/webhogg/lighttpd.config | |
parent | b5ec9c693f3abfe36d6d1e4dbf86e084872a4676 (diff) |
Create web workers
Diffstat (limited to 'WebInterface/wasm/webhogg/lighttpd.config')
-rw-r--r-- | WebInterface/wasm/webhogg/lighttpd.config | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/WebInterface/wasm/webhogg/lighttpd.config b/WebInterface/wasm/webhogg/lighttpd.config index 406b009..4072b30 100644 --- a/WebInterface/wasm/webhogg/lighttpd.config +++ b/WebInterface/wasm/webhogg/lighttpd.config @@ -11,6 +11,8 @@ server.http-parseopts = ( "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" @@ -19,7 +21,7 @@ mimetype.assign = ( ".html" => "text/html", ".txt" => "text/plain", ".css" => "text/css", - ".js" => "application/x-javascript", + ".js" => "application/javascript", ".jpg" => "image/jpeg", ".jpeg" => "image/jpeg", ".gif" => "image/gif", @@ -27,3 +29,6 @@ mimetype.assign = ( ".wasm" => "application/wasm", "" => "application/octet-stream" ) +sentenv.add-response-header = ( + "Content-Security-Policy" => "worker-src localhost:*" +) |