#876: increase limit of requests per hour
This commit is contained in:
parent
6473b73859
commit
b45ea0da11
|
@ -9,7 +9,7 @@ class ApiDefender < Rack::Throttle::Hourly
|
||||||
options = {
|
options = {
|
||||||
:cache => Redis.new(:thread_safe => true),
|
:cache => Redis.new(:thread_safe => true),
|
||||||
:key_prefix => :throttle,
|
:key_prefix => :throttle,
|
||||||
:max => 500 # only 500 request per hour
|
:max => 2000 # only 2000 request per hour
|
||||||
}
|
}
|
||||||
@app, @options = app, options
|
@app, @options = app, options
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue