]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/apache/templates/default/evasive.conf.erb
build(deps): bump kitchen-dokken from 2.20.6 to 2.20.7
[chef.git] / cookbooks / apache / templates / default / evasive.conf.erb
index fc9a4e6c077b987a9baf706f7f84d1b634ee8e72..7a0303374eecef7e225ffb90d8dea53507883787 100644 (file)
@@ -1,10 +1,11 @@
 # DO NOT EDIT - This file is being maintained by Chef
 
 <IfModule mod_evasive20.c>
-    DOSHashTableSize    65536
-    DOSPageCount        10
-    DOSSiteCount        150
-    DOSPageInterval     1
-    DOSSiteInterval     1
-    DOSBlockingPeriod   60
+    DOSHashTableSize <%= node[:apache][:evasive][:hash_table_size] %>
+    DOSPageCount <%= node[:apache][:evasive][:page_count] %>
+    DOSSiteCount <%= node[:apache][:evasive][:site_count] %>
+    DOSPageInterval <%= node[:apache][:evasive][:page_interval] %>
+    DOSSiteInterval <%= node[:apache][:evasive][:site_interval] %>
+    DOSBlockingPeriod <%= node[:apache][:evasive][:blocking_period] %>
+    DOSHTTPResponseCode 429
 </IfModule>