mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Don't rate-limit PuSH endpoints
This commit is contained in:
parent
4e351baf88
commit
c0555f2db6
@ -1,7 +1,7 @@
|
||||
class Rack::Attack
|
||||
# Rate limits for the API
|
||||
throttle('api', limit: 150, period: 5.minutes) do |req|
|
||||
req.ip if req.path.match(/\A\/api\//)
|
||||
req.ip if req.path.match(/\A\/api\/v/)
|
||||
end
|
||||
|
||||
self.throttled_response = lambda do |env|
|
||||
|
Loading…
Reference in New Issue
Block a user