This website works better with JavaScript.
Explore
Help
Sign In
MetuFSS
/
metu.life
Watch
2
Star
1
Fork
You've already forked metu.life
0
Code
Issues
Pull Requests
Releases
Wiki
Activity
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
208
Commits
1
Branch
0
Tags
134 MiB
Tag:
Branch:
Tree:
2e7aac793a
master
Branches
Tags
${ item.name }
Create tag
${ searchTerm }
Create branch
${ searchTerm }
from '2e7aac793a'
${ noResults }
metu.life
/
config
/
initializers
/
rack-attack.rb
6 lines
101 B
Raw
Normal View
History
Unescape
Escape
Adding letter opener for development and Rack::Attack for future rate limiting implementations
9 years ago
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
9 years ago
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
9 years ago
end