Skip to content
Extraits de code Groupes Projets
Valider c0555f2d rédigé par Eugen Rochko's avatar Eugen Rochko
Parcourir les fichiers

Don't rate-limit PuSH endpoints

parent 4e351baf
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
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% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter