about summary refs log tree commit diff
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-09-01 05:33:03 -0500
committermultiple creatures <dev@multiple-creature.party>2019-09-01 05:33:03 -0500
commitbff22832b742fb37d647bfd95f87756a4cced064 (patch)
treec2466d2d40aae10a58f70240cacd096a15ca9719
parent8c81626a56fb30151ad8bb32199161a414eab48d (diff)
bump up authenticated media api req limit
-rw-r--r--config/initializers/rack_attack.rb2
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