]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/taginfo/templates/default/apache.erb
Use sudo to run passenger-config when restarting taginfo
[chef.git] / cookbooks / taginfo / templates / default / apache.erb
index 9ebca518e907a6f60d3e11f0d7b8ae9b4407d1a1..288b13ff1c6f991358dc439cbd2edc4c7f7550ca 100644 (file)
         RackEnv production
         PassengerMinInstances 10
         PassengerPreStart http://<%= @name %>/
+
+        CacheEnable disk /api
+        CacheEnable disk /embed
+        CacheStaleOnError off
+
+        <Location /api>
+                Header setifempty Access-Control-Allow-Origin *
+        </Location>
 </VirtualHost>
 <% end -%>
+
+<Directory <%= @directory %>>
+        Require all granted
+</Directory>