https://github.com/axil/django-redissentry
https://github.com/axil/django-redissentry
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/axil/django-redissentry
- Owner: axil
- License: mit
- Created: 2012-04-10T10:09:03.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2012-06-25T10:19:01.000Z (over 13 years ago)
- Last Synced: 2024-11-10T22:51:52.609Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 225 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES
- License: LICENSE
Awesome Lists containing this project
README
===========
RedisSentry
===========
This is django specific app for RedisSentry. For generic package,
(which this app is dependent on) see redissentry-core.
Installation
------------
settings.py::
MIDDLEWARE_CLASSES += (
'redissentry.middleware.RequestMiddleware',
)
INSTALLED_APPS += (
'redissentry',
)
Finetuning
----------
settings.py::
RS_REDIS_HOST = 'localhost'
RS_REDIS_PORT = 6379
RS_REDIS_PASSWORD = ''
RS_REDIS_DB = 0
RS_FA_PER_IP = 5 # block ip after every N failed attempts
RS_FA_PER_USERNAME = 5 # block username after every N failed attempts
Also the class structure is designed in such a way as to facilitate further finetuning
through inheritance.