set flask-limiter storage example to redis

This commit is contained in:
codl 2017-08-10 17:20:28 +02:00
parent ec6bc7817e
commit f52144008b
No known key found for this signature in database
GPG Key ID: 6CD7C8891ED1233A
2 changed files with 11 additions and 0 deletions

View File

@ -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
"""

View File

@ -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