X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/04e94420600411b12cb99221714da36aae5634bf..4c86175022c9036999f9d8341e48cbd884448709:/cookbooks/nominatim/recipes/base.rb diff --git a/cookbooks/nominatim/recipes/base.rb b/cookbooks/nominatim/recipes/base.rb index 69b5db1ae..390de61f9 100644 --- a/cookbooks/nominatim/recipes/base.rb +++ b/cookbooks/nominatim/recipes/base.rb @@ -19,7 +19,6 @@ include_recipe "apache::ssl" include_recipe "postgresql" -include_recipe "git" package "php5" package "php5-cli" @@ -49,16 +48,6 @@ service "php5-fpm" do supports :status => true, :restart => true, :reload => true end -apache_site "nominatim.openstreetmap.org" do - template "apache.erb" - directory source_directory - variables :pools => node[:nominatim][:fpm_pools] -end - -apache_site "default" do - action [:disable] -end - node[:nominatim][:fpm_pools].each do |name, data| template "/etc/php5/fpm/pool.d/#{name}.conf" do source "fpm.conf.erb" @@ -257,8 +246,18 @@ directory "/data/postgresql-archive" do only_if { node[:postgresql][:settings][:defaults][:archive_mode] == "on" } end +apache_site "nominatim.openstreetmap.org" do + template "apache.erb" + directory source_directory + variables :pools => node[:nominatim][:fpm_pools] +end + +apache_site "default" do + action [:disable] +end + fail2ban_filter "nominatim" do - failregex '^ - - \[[^]]+\] "[^"]+" (403|429) ' + failregex '^ - - \[[^]]+\] "[^"]+" 429 ' end fail2ban_jail "nominatim" do