diff --git a/config/initializers/rack_attack.rb b/config/initializers/rack_attack.rb index 72ef7ba8019..7ec00ac7516 100644 --- a/config/initializers/rack_attack.rb +++ b/config/initializers/rack_attack.rb @@ -74,7 +74,7 @@ class Rack::Attack req.authenticated_user_id if req.post? && req.path.match?(/\A\/api\/v\d+\/media\z/i) end - throttle('throttle_media_proxy', limit: 30, period: 10.minutes) do |req| + throttle('throttle_media_proxy', limit: 300, period: 5.minutes) do |req| req.throttleable_remote_ip if req.path.start_with?('/media_proxy') end