summaryrefslogtreecommitdiff
path: root/WebInterface/wasm/webhogg/lighttpd.config
diff options
context:
space:
mode:
Diffstat (limited to 'WebInterface/wasm/webhogg/lighttpd.config')
-rw-r--r--WebInterface/wasm/webhogg/lighttpd.config7
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:*"
+)