@cryptotaxi247 / infra-1 / commits / 4e9fbe0e

enabled mod_deflate on hydra.nixos.org domain

svn path=/configurations/trunk/tud/; revision=27236

Rob Vermaas committed May 12, 2011 at 11:03 UTC 4e9fbe0ed2ae5b2e315f48bc1578ed2de596b8d7
1 file changed +12 -2
cartman.nix
+12 -2
@@ -172,10 +172,11 @@ rec {
172
173 sslServerCert = "/root/ssl-secrets/server.crt";
174 sslServerKey = "/root/ssl-secrets/server.key";
175 -
175 +
176 + extraModules = ["deflate"];
177 extraConfig = ''
178 AddType application/nix-package .nixpkg
178 -
179 +
180 SSLProtocol all -TLSv1
181
182 <Location /server-status>
@@ -393,6 +394,15 @@ rec {
394 ProxyPreserveHost On
395 ProxyPass / http://lucifer:3000/ retry=5
396 ProxyPassReverse / http://lucifer:3000/
397 +
398 + <Location />
399 + SetOutputFilter DEFLATE
400 + BrowserMatch ^Mozilla/4\.0[678] no-gzip\
401 + BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
402 + SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
403 + SetEnvIfNoCase Request_URI /api/ no-gzip dont-vary
404 + SetEnvIfNoCase Request_URI /download/ no-gzip dont-vary
405 + </Location>
406 '';
407 }
408