Skip to content

Commit

Permalink
Change rate limit for media proxy (mastodon#11814)
Browse files Browse the repository at this point in the history
  • Loading branch information
ykzts authored and hiyuki2578 committed Oct 2, 2019
1 parent 0cee396 commit 64a8e13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/rack_attack.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def paging_request?
req.authenticated_user_id if req.post? && req.path.start_with?('/api/v1/media')
end

throttle('throttle_media_proxy', limit: 30, period: 30.minutes) do |req|
throttle('throttle_media_proxy', limit: 30, period: 10.minutes) do |req|
req.remote_ip if req.path.start_with?('/media_proxy')
end

Expand Down

0 comments on commit 64a8e13

Please sign in to comment.