From 7fced08a326ffdbbf950c403d99a8e59e7755c63 Mon Sep 17 00:00:00 2001 From: Monty Taylor <mordred@inaugust.com> Date: Tue, 3 Jun 2014 23:36:37 +0200 Subject: [PATCH] Use Apache to compress status.json Doing this in python is teh suck on large status pages. Apache is pretty good at it. Partial-bug: 1326170 Change-Id: Iccee19dd6179f5a5f928fef43068d2450828fa0d --- modules/zuul/templates/zuul.vhost.erb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/zuul/templates/zuul.vhost.erb b/modules/zuul/templates/zuul.vhost.erb index dc7cb62577..e38d6efff9 100644 --- a/modules/zuul/templates/zuul.vhost.erb +++ b/modules/zuul/templates/zuul.vhost.erb @@ -11,6 +11,8 @@ RewriteEngine on RewriteRule ^/status.json$ http://127.0.0.1:8001/status.json [P] + AddOutputFilterByType DEFLATE application/json + Alias /rechecks.html /var/www/recheckwatch/rechecks.html Alias /rechecks /var/www/recheckwatch/rechecks.html @@ -20,4 +22,5 @@ AliasMatch ^/p/(.*/objects/[0-9a-f]{2}/[0-9a-f]{38})$ /var/lib/zuul/git/$1 AliasMatch ^/p/(.*/objects/pack/pack-[0-9a-f]{40}.(pack|idx))$ /var/lib/zuul/git/$1 ScriptAlias /p/ /usr/lib/git-core/git-http-backend/ + </VirtualHost>