add: limiter extension to allow rate-limit the API

This commit is contained in:
ziirish 2017-01-29 18:00:22 +01:00
parent 3692887d80
commit 12100ff884
9 changed files with 154 additions and 20 deletions

View file

@ -63,6 +63,17 @@ celery = false
# http://docs.sqlalchemy.org/en/latest/core/engines.html#database-urls
# example: sqlite:////var/lib/burpui/store.db
database = none
# whether to rate limit the API or not
# may also be a redis url like: redis://localhost:6379/0
# if set to "true" or "redis" or "default", the url defaults to:
# redis://<redis_host>:<redis_port>/3
# where <redis_host> is the host part, and <redis_port> is the port part of
# the above "redis" setting
# Note: the limiter only applies to the API routes
limiter = false
# limiter ratio
# see https://flask-limiter.readthedocs.io/en/stable/#ratelimit-string
ratio = 20/minute
[Security]
## This section contains some security options. Make sure you understand the