set flask-limiter storage example to redis
This commit is contained in:
parent
ec6bc7817e
commit
f52144008b
|
@ -33,6 +33,16 @@ HTTPS=True
|
|||
|
||||
# SENTRY_DSN='https://foo:bar@sentry.io/69420'
|
||||
|
||||
'''
|
||||
you can set this to memory:// if you only have one web process
|
||||
or if you don't care about people exhausting your twitter api
|
||||
key and your celery workers by making hundreds of login
|
||||
requests and uploading hundreds of bogus tweet archives
|
||||
|
||||
docs here <https://flask-limiter.readthedocs.io/en/stable/#configuration>
|
||||
'''
|
||||
RATELIMIT_STORAGE_URL='redis://'
|
||||
|
||||
"""
|
||||
you can also use any config variable that flask expects here, such as
|
||||
"""
|
||||
|
|
|
@ -23,6 +23,7 @@ python-dateutil==2.6.0
|
|||
python-editor==1.0.3
|
||||
pytz==2017.2
|
||||
raven==6.1.0
|
||||
redis==2.10.5
|
||||
six==1.10.0
|
||||
SQLAlchemy==1.1.11
|
||||
twitter==1.17.1
|
||||
|
|
Loading…
Reference in New Issue