relax the the media proxy rate limit when logged in (now with 300% more relaxation)

staging
multiple creatures 2019-08-15 23:47:23 -05:00
parent d2eb644d45
commit f9eaffc790
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ class Rack::Attack
req.authenticated_user_id if req.post? && req.path.start_with?('/api/v1/media')
end
throttle('throttle_authenticated_media_proxy', limit: 100, period: 5.minutes) do |req|
throttle('throttle_authenticated_media_proxy', limit: 300, period: 5.minutes) do |req|
req.authenticated_user_id if req.path.start_with?('/media_proxy')
end