aboutsummaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorJeffrey Zhang <jeffrey.zhang@99cloud.net>2016-07-24 01:27:59 +0800
committerJeffrey Zhang <jeffrey.zhang@99cloud.net>2016-08-09 11:30:38 +0800
commited1b3dc9299e2a897d97e49906adc8d9f61ee0fd (patch)
tree1e823bf88d22778792980604c091f9b70a4a8389 /docker
parent661c6a059ff40fe986bfd4488345dfcf0d8187cc (diff)
downloadkolla-ed1b3dc9299e2a897d97e49906adc8d9f61ee0fd.tar.gz
kolla-ed1b3dc9299e2a897d97e49906adc8d9f61ee0fd.zip
Optimize horizon cache and compress for http response
Leverage the browser cache and compress to speed up the file transfer. In RHEL based image, the expire and deflate module are enabled in default. In the Debian based image, only the deflate is enabled * Enable expire module on the Debian based image * Enable the expire for the assets resource * Enable the deflate for the http response Closes-Bug: #1605907 Change-Id: If25decc38a10a21929f72a89cdb350d4ac64a5a9
Diffstat (limited to 'docker')
-rw-r--r--docker/horizon/Dockerfile.j21
1 files changed, 1 insertions, 0 deletions
diff --git a/docker/horizon/Dockerfile.j2 b/docker/horizon/Dockerfile.j2
index 40b8117e2..75dc84eb3 100644
--- a/docker/horizon/Dockerfile.j2
+++ b/docker/horizon/Dockerfile.j2
@@ -44,6 +44,7 @@ RUN {{ macros.install_packages(horizon_packages | customizable("packages")) }}
RUN echo > /etc/apache2/ports.conf \
&& sed -i 's|\(ServerTokens \)OS|\1Prod|' /etc/apache2/conf-available/security.conf \
&& ln -s ../mods-available/headers.load /etc/apache2/mods-enabled/headers.load \
+ && ln -s ../mods-available/expires.load /etc/apache2/mods-enabled/expires.load \
&& cp /usr/share/openstack-dashboard/openstack_dashboard/conf/*.json /etc/openstack-dashboard \
&& sed -i "s|WEBROOT='/horizon/'|WEBROOT = '/'|" /etc/openstack-dashboard/local_settings.py \
&& sed -i "s|^POLICY_FILES_PATH|POLICY_FILES_PATH = '/etc/openstack-dashboard'|" /etc/openstack-dashboard/local_settings.py \