This website requires JavaScript.
Explore
Support
Help
Register
Sign In
tykayn
/
mastodon
Watch
1
Star
0
Fork
0
You've already forked mastodon
mirror of
https://framagit.org/tykayn/mastodon.git
synced
2023-08-25 08:33:12 +02:00
Code
Issues
Projects
Releases
Wiki
Activity
bb98ee489d
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 14:57:30 +01: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 14:12:24 +01: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 14:57:30 +01:00
end
Reference in New Issue
Copy Permalink
Accueil Chapril
Services libres
Nous suivre
CGU
Mentions légales
Nous contacter
Accueil Chapril
Services libres
Nous suivre
CGU
Mentions légales
Nous contacter