summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-03-09 01:26:55 -0500
committerPeter Kozak <spag@golwen.net>2013-03-09 01:26:55 -0500
commitb0913ad86e3f90527310607d45b4228b97a58ffc (patch)
tree35337484fbc68b93b6b5dce3ae7ef966a439b3ea
parent473fbe23f29278ac2384b2d3b3fc814dbb5ab9fc (diff)
more relaxed perimeter defaults
-rw-r--r--db/migrate/20130309055700_change_perimeter_gs_parameters.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/db/migrate/20130309055700_change_perimeter_gs_parameters.rb b/db/migrate/20130309055700_change_perimeter_gs_parameters.rb
new file mode 100644
index 0000000..6e29bd0
--- /dev/null
+++ b/db/migrate/20130309055700_change_perimeter_gs_parameters.rb
@@ -0,0 +1,18 @@
+class ChangePerimeterGsParameters < ActiveRecord::Migration
+ def up
+ GsParameter.where(:entity => 'perimeter', :section => 'bad_headers_register', :name => 'from_user').first.update_attributes(:value => '^%d+$', :class_type => 'String')
+ GsParameter.where(:entity => 'perimeter', :section => 'bad_headers_register', :name => 'to_user').first.update_attributes(:value => '^%d+$', :class_type => 'String')
+
+ GsParameter.where(:entity => 'perimeter', :section => 'checks_call', :name => 'check_bad_headers').first.update_attributes(:value => '20', :class_type => 'Integer')
+ GsParameter.where(:entity => 'perimeter', :section => 'checks_call', :name => 'check_frequency').first.update_attributes(:value => '100', :class_type => 'Integer')
+
+ GsParameter.where(:entity => 'perimeter', :section => 'checks_register', :name => 'check_bad_headers').first.update_attributes(:value => '20', :class_type => 'Integer')
+ GsParameter.where(:entity => 'perimeter', :section => 'checks_register', :name => 'check_frequency').first.update_attributes(:value => '100', :class_type => 'Integer')
+ GsParameter.where(:entity => 'perimeter', :section => 'checks_register', :name => 'check_username_scan').first.update_attributes(:value => '20', :class_type => 'Integer')
+
+ GsParameter.where(:entity => 'perimeter', :section => 'general', :name => 'ban_threshold').first.update_attributes(:value => '1000', :class_type => 'Integer')
+ end
+
+ def down
+ end
+end