Enable compresion in lighttpd
Change-Id: I70345abe51ed561c28292748bcc14dded4b3427e
Issue-ID: INT-586
Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
diff --git a/docker/lighttpd.conf b/docker/lighttpd.conf
index e9a5a37..6cdf07b 100644
--- a/docker/lighttpd.conf
+++ b/docker/lighttpd.conf
@@ -24,6 +24,7 @@
server.modules += ( "mod_auth" )
server.modules += ( "mod_alias" )
+server.modules += ( "mod_compress" )
auth.debug = 2
auth.backend = "plain"
auth.backend.plain.userfile = "/etc/lighttpd/authorization"
@@ -34,3 +35,6 @@
"require" => "valid-user"
)
)
+
+compress.cache-dir = "/var/cache/lighttpd/compress/"
+compress.filetype = ("application/x-javascript", "text/css", "text/html", "text/plain")