depends "git"
depends "memcached"
depends "munin"
-depends "nfs"
depends "nodejs"
depends "passenger"
depends "systemd"
# limitations under the License.
#
-node.default[:nfs]["/store/rails"] = {
- :host => node[:web][:fileserver],
- :path => "/store/rails"
-}
-
include_recipe "accounts"
-include_recipe "nfs"
directory node[:web][:base_directory] do
group "rails"
email_from "OpenStreetMap <web@noreply.openstreetmap.org>"
status node[:web][:status]
messages_domain "messages.openstreetmap.org"
- gpx_dir "/store/rails/gpx"
- attachments_dir "/store/rails/attachments"
log_path "#{node[:web][:log_directory]}/rails.log"
logstash_path "#{node[:web][:log_directory]}/rails-logstash.log"
memcache_servers node[:web][:memcached_servers]
Alias /favicon.ico <%= node[:web][:base_directory] %>/rails/app/assets/favicons/favicon.ico
Alias /openlayers <%= node[:web][:base_directory] %>/static/openlayers
RedirectPermanent /stats https://planet.openstreetmap.org/statistics
- Alias /user/image /store/rails/user/image
- Alias /attachments /store/rails/attachments
#
# Pass authentication related headers to cgimap
<Directory /srv/www.openstreetmap.org/rails/vendor/assets>
Require all granted
</Directory>
-
-<Directory /store/rails/stats>
- Require all granted
-</Directory>
-
-<Directory /store/rails/user/image>
- Require all granted
-</Directory>
-
-<Directory /store/rails/attachments>
- Require all granted
-</Directory>