diff options
-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 => '', |