diff options
author | Gary Wu <gary.i.wu@huawei.com> | 2018-10-30 15:16:11 -0700 |
---|---|---|
committer | Gary Wu <gary.i.wu@huawei.com> | 2018-10-30 15:16:11 -0700 |
commit | 23920afbed4b51c732974c600f5c94a56e472103 (patch) | |
tree | 8c2d93b19f1e5a90c10333ff2324afec117678bb /docker | |
parent | 4abf21ff6cc8ccc600ef3f38b485d4fc15c2f0ea (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')
-rw-r--r-- | docker/lighttpd.conf | 4 |
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") |