Browse Source

Fix media API limit (#17272)

closed-social-glitch-2
Jeong Arm 2 years ago
committed by GitHub
parent
commit
ea61d3acd6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      config/initializers/rack_attack.rb

+ 1
- 1
config/initializers/rack_attack.rb View File

@ -55,7 +55,7 @@ class Rack::Attack
end
throttle('throttle_api_media', limit: 30, period: 30.minutes) do |req|
req.authenticated_user_id if req.post? && req.path.start_with?('/api/v1/media')
req.authenticated_user_id if req.post? && req.path.match?('^/api/v\d+/media')
end
throttle('throttle_media_proxy', limit: 30, period: 10.minutes) do |req|

Loading…
Cancel
Save