include_recipe "web::rails"
include_recipe "web::cgimap"
+web_passwords = data_bag_item("web", "passwords")
+
apache_module "fastcgi-handler"
apache_module "remoteip"
apache_module "rewrite"
apache_site "www.openstreetmap.org" do
template "apache.backend.erb"
+ variables :secret_key_base => web_passwords["secret_key_base"]
end
node.set[:memcached][:ip_address] = node.internal_ipaddress
include_recipe "apache::ssl"
include_recipe "web::rails"
+web_passwords = data_bag_item("web", "passwords")
+
apache_module "alias"
apache_module "deflate"
apache_module "expires"
apache_site "www.openstreetmap.org" do
template "apache.frontend.erb"
+ variables :secret_key_base => web_passwords["secret_key_base"]
end
gem_package "hpricot"
PassengerMinInstances 3
PassengerMaxRequests 500
PassengerPreStart http://www.openstreetmap.org/
+ SetEnv SECRET_KEY_BASE <%= @secret_key_base %>
#
# Get the real remote IP for requests via a trusted proxy
PassengerMinInstances 10
PassengerMaxRequests 5000
PassengerPreStart http://www.openstreetmap.org/
+ SetEnv SECRET_KEY_BASE <%= @secret_key_base %>
Alias /favicon.ico <%= node[:web][:base_directory] %>/rails/app/assets/images/favicon.ico
Alias /openlayers <%= node[:web][:base_directory] %>/rails/vendor/assets/openlayers
Alias /stats /store/rails/stats