This website requires JavaScript.
Explore
Help
Sign In
mirror
/
YuruToot
Watch
1
Star
0
Fork
0
You've already forked YuruToot
mirror of
https://github.com/funamitech/mastodon
synced
2024-12-20 09:38:32 +09:00
Code
c2a4d70265
YuruToot
/
config
/
initializers
/
rack-attack.rb
6 lines
101 B
Ruby
Raw
Normal View
History
Unescape
Escape
Adding letter opener for development and Rack::Attack for future rate limiting implementations
2016-03-19 22:57:30 +09:00
class
Rack
::
Attack
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 22:12:24 +09:00
throttle
(
'req/ip'
,
limit
:
300
,
period
:
5
.
minutes
)
do
|
req
|
req
.
ip
end
Adding letter opener for development and Rack::Attack for future rate limiting implementations
2016-03-19 22:57:30 +09:00
end
Copy Permalink