This website requires JavaScript.
Explore
Help
Sign In
nrd.li
/
mastodon
Archived
Watch
1
Star
0
Fork
You've already forked mastodon
0
Code
Issues
Pull requests
Releases
Wiki
Activity
This repository has been archived on
2019-05-14
. You can view files and clone it, but cannot push or open issues or pull requests.
d709151781
mastodon
/
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 13:57:30 +00: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 13:12:24 +00: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 13:57:30 +00:00
end
Reference in a new issue
Copy permalink