update `rack_attack` config

master
multiple creatures 2020-01-15 21:30:22 -06:00
parent d4b8f90f29
commit 729a32d2a5
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ class Rack::Attack
req.authenticated_user_id if req.path.start_with?('/media_proxy')
end
throttle('throttle_unauthenticated_media_proxy', limit: 30, period: 30.minutes) do |req|
throttle('throttle_unauthenticated_media_proxy', limit: 30, period: 10.minutes) do |req|
req.remote_ip if req.unauthenticated? && req.path.start_with?('/media_proxy')
end