summaryrefslogtreecommitdiffstats
path: root/docker/lighttpd.conf
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2018-10-30 15:16:11 -0700
committerGary Wu <gary.i.wu@huawei.com>2018-10-30 15:16:11 -0700
commit23920afbed4b51c732974c600f5c94a56e472103 (patch)
tree8c2d93b19f1e5a90c10333ff2324afec117678bb /docker/lighttpd.conf
parent4abf21ff6cc8ccc600ef3f38b485d4fc15c2f0ea (diff)
Enable compresion in lighttpd
Change-Id: I70345abe51ed561c28292748bcc14dded4b3427e Issue-ID: INT-586 Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
Diffstat (limited to 'docker/lighttpd.conf')
-rw-r--r--docker/lighttpd.conf4
1 files changed, 4 insertions, 0 deletions
diff --git a/docker/lighttpd.conf b/docker/lighttpd.conf
index e9a5a375..6cdf07bd 100644
--- a/docker/lighttpd.conf
+++ b/docker/lighttpd.conf
@@ -24,6 +24,7 @@ index-file.names = ( "index.html" )
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 @@ auth.require = ( "/" =>
"require" => "valid-user"
)
)
+
+compress.cache-dir = "/var/cache/lighttpd/compress/"
+compress.filetype = ("application/x-javascript", "text/css", "text/html", "text/plain")