1
0
mirror of https://github.com/funamitech/mastodon synced 2024-12-01 08:18:53 +09:00
YuruToot/config/initializers/rack-attack.rb
Eugen Rochko e24bfbde1a Fixing FanOutOnWriteService, fixing Sidekiq not having enough DB connections
in the pool, adding a throttle of 60rpm per IP, adding mini profiler, adding
admin status to users
2016-03-25 14:12:24 +01:00

6 lines
101 B
Ruby

class Rack::Attack
throttle('req/ip', limit: 300, period: 5.minutes) do |req|
req.ip
end
end