apache_module "proxy_fcgi"
apache_module "proxy_http"
apache_module "headers"
+apache_module "reqtimeout"
service "php7.0-fpm" do
action [:enable, :start]
include_recipe "fail2ban"
+web_servers = search(:node, "recipes:web\\:\\:frontend").collect do |n| # ~FC010
+ n.ipaddresses(:role => :external)
+end.flatten
+
fail2ban_filter "nominatim" do
- failregex '^<HOST> - - \[\] "[^"]+" 429 '
+ failregex '^<HOST> - - \[\] "[^"]+" (408|429) '
end
fail2ban_jail "nominatim" do
logpath "/var/log/apache2/nominatim.openstreetmap.org-access.log"
ports [80, 443]
maxretry 100
+ ignoreips web_servers
end
munin_plugin_conf "nominatim" do