Author: rob
Date: Thu May 12 11:03:29 2011
New Revision: 27236
URL: https://svn.nixos.org/websvn/nix/?rev=27236&sc=1

Log:
enabled mod_deflate on hydra.nixos.org domain

Modified:
   configurations/trunk/tud/cartman.nix

Modified: configurations/trunk/tud/cartman.nix
==============================================================================
--- configurations/trunk/tud/cartman.nix        Thu May 12 10:52:11 2011        
(r27235)
+++ configurations/trunk/tud/cartman.nix        Thu May 12 11:03:29 2011        
(r27236)
@@ -172,10 +172,11 @@
 
       sslServerCert = "/root/ssl-secrets/server.crt";
       sslServerKey = "/root/ssl-secrets/server.key";
-          
+    
+      extraModules = ["deflate"];      
       extraConfig = ''
         AddType application/nix-package .nixpkg
-
+        
         SSLProtocol all -TLSv1
 
         <Location /server-status>
@@ -393,6 +394,15 @@
             ProxyPreserveHost On
             ProxyPass         /       http://lucifer:3000/ retry=5
             ProxyPassReverse  /       http://lucifer:3000/
+            
+            <Location />
+              SetOutputFilter DEFLATE
+              BrowserMatch ^Mozilla/4\.0[678] no-gzip\
+              BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
+              SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
+              SetEnvIfNoCase Request_URI /api/ no-gzip dont-vary
+              SetEnvIfNoCase Request_URI /download/ no-gzip dont-vary
+            </Location>
           '';
         }
 
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to