Skip to content
Snippets Groups Projects
Commit c0555f2d authored by Eugen Rochko's avatar Eugen Rochko
Browse files

Don't rate-limit PuSH endpoints

parent 4e351baf
No related branches found
No related tags found
No related merge requests found
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|
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment