diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-09-01 05:33:03 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-09-01 05:33:03 -0500 |
commit | bff22832b742fb37d647bfd95f87756a4cced064 (patch) | |
tree | c2466d2d40aae10a58f70240cacd096a15ca9719 | |
parent | 8c81626a56fb30151ad8bb32199161a414eab48d (diff) |
bump up authenticated media api req limit
-rw-r--r-- | config/initializers/rack_attack.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/initializers/rack_attack.rb b/config/initializers/rack_attack.rb index b832eacf1..d59c3722b 100644 --- a/config/initializers/rack_attack.rb +++ b/config/initializers/rack_attack.rb @@ -61,7 +61,7 @@ class Rack::Attack req.remote_ip if req.api_request? && req.unauthenticated? end - throttle('throttle_api_media', limit: 30, period: 30.minutes) do |req| + throttle('throttle_api_media', limit: 300, period: 5.minutes) do |req| req.authenticated_user_id if req.post? && req.path.start_with?('/api/v1/media') end |