diff options
author | Gareth Rees <gareth@mysociety.org> | 2014-07-11 16:14:31 +0100 |
---|---|---|
committer | Gareth Rees <gareth@mysociety.org> | 2014-08-26 09:32:19 +0100 |
commit | 18b02f14f590ad274588a8ef10f97eaf0d1d9b3e (patch) | |
tree | e4a797e3b92b8ea898806fa9f192e8e8398431c9 | |
parent | bc9634c65abc729ec5e75fd2826a07de5cc3ed37 (diff) |
Set default MAX_REQUESTS_PER_USER_PER_DAY
We supply a default example for MAX_REQUESTS_PER_USER_PER_DAY so we
might as well set it as default and allow the user to tune if they
dislike the default.
-rw-r--r-- | config/general.yml-example | 7 | ||||
-rw-r--r-- | lib/configuration.rb | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/config/general.yml-example b/config/general.yml-example index 3a81158ac..497611d96 100644 --- a/config/general.yml-example +++ b/config/general.yml-example @@ -530,7 +530,12 @@ EXCEPTION_NOTIFICATIONS_TO: # This rate limiting can be turned off per-user via the admin interface # -# MAX_REQUESTS_PER_USER_PER_DAY - Integer (default: nil) +# MAX_REQUESTS_PER_USER_PER_DAY - Integer (default: 6) +# +# Examples: +# +# MAX_REQUESTS_PER_USER_PER_DAY: 1 +# MAX_REQUESTS_PER_USER_PER_DAY: '' # No limit # # --- MAX_REQUESTS_PER_USER_PER_DAY: 6 diff --git a/lib/configuration.rb b/lib/configuration.rb index d22b304ac..ce1d5908d 100644 --- a/lib/configuration.rb +++ b/lib/configuration.rb @@ -46,7 +46,7 @@ module AlaveteliConfiguration :INCOMING_EMAIL_SECRET => 'dummysecret', :ISO_COUNTRY_CODE => 'GB', :MINIMUM_REQUESTS_FOR_STATISTICS => 100, - :MAX_REQUESTS_PER_USER_PER_DAY => '', + :MAX_REQUESTS_PER_USER_PER_DAY => 6, :MTA_LOG_TYPE => 'exim', :NEW_RESPONSE_REMINDER_AFTER_DAYS => [3, 10, 24], :OVERRIDE_ALL_PUBLIC_BODY_REQUEST_EMAILS => '', |