]> git.openstreetmap.org Git - chef.git/blob - cookbooks/taginfo/templates/default/apache.erb
Use osmium to update planet file instead of osmosis, it is much faster.
[chef.git] / cookbooks / taginfo / templates / default / apache.erb
1 # DO NOT EDIT - This file is being maintained by Chef
2
3 <% [80, 443].each do |port| -%>
4
5 <VirtualHost *:<%= port %>>
6         ServerName <%= @name %>
7         ServerAdmin webmaster@openstreetmap.org
8 <% if port == 443 -%>
9
10         SSLEngine on
11 <% end -%>
12
13         CustomLog /var/log/apache2/<%= @name %>-access.log combined
14         ErrorLog /var/log/apache2/<%= @name %>-error.log
15
16         DocumentRoot <%= @directory %>
17         RackEnv production
18         PassengerMinInstances 10
19         PassengerPreStart http://<%= @name %>/
20
21         CacheEnable disk /api
22         CacheEnable disk /embed
23         CacheStaleOnError off
24
25         <Location /api>
26                 Header setifempty Access-Control-Allow-Origin *
27         </Location>
28 </VirtualHost>
29 <% end -%>
30
31 <Directory <%= @directory %>>
32         Require all granted
33 </Directory>