]> git.openstreetmap.org Git - chef.git/commitdiff
Fix configuration of SVG compression for dev instances
authorTom Hughes <tom@compton.nu>
Sun, 13 Sep 2015 11:02:29 +0000 (12:02 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 13 Sep 2015 11:02:29 +0000 (12:02 +0100)
cookbooks/dev/templates/default/apache.apis.erb
cookbooks/dev/templates/default/apache.rails.erb

index 3a7a5868837205df02c93dda8e7987232a4ee563..1afec5c9338659e7559d70e234813af5b2a1cb9e 100644 (file)
@@ -8,8 +8,6 @@
 
        CustomLog /var/log/apache2/apis.dev.openstreetmap.org-access.log combined
        ErrorLog /var/log/apache2/apis.dev.openstreetmap.org-error.log
-
-        AddOutputFilterByType DEFLATE image/svg+xml
 </VirtualHost>
 
 <Directory /srv/apis.dev.openstreetmap.org>
index 7301fd83415761ed75b199413d085b2a5cbe7d0d..1c3541916ae8b836a0975a0de3b5073d528fcd48 100644 (file)
@@ -12,6 +12,8 @@
         CustomLog /var/log/apache2/<%= @name %>-access.log combined
         ErrorLog /var/log/apache2/<%= @name %>-error.log
 
+        AddOutputFilterByType DEFLATE image/svg+xml
+
         RailsEnv production
 
         SetEnv SECRET_KEY_BASE <%= @secret_key_base %>