Ver código fonte

Don't rate-limit PuSH endpoints

master
Eugen Rochko 7 anos atrás
pai
commit
c0555f2db6
1 arquivos alterados com 1 adições e 1 exclusões
  1. +1
    -1
      config/initializers/rack-attack.rb

+ 1
- 1
config/initializers/rack-attack.rb Ver arquivo

@@ -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|


Carregando…
Cancelar
Salvar