Permalink
Browse files

Merge pull request #2424 from akatsoulas/reverse-proxy

Update configuration for django-axes.
  • Loading branch information...
akatsoulas committed Jun 20, 2018
2 parents 39681bd + 34a9f96 commit 6f60b22b0f4665cc5b1c036b6991602f6321f980
Showing with 2 additions and 1 deletion.
  1. +2 −1 mozillians/settings.py
View
@@ -440,7 +440,8 @@ def _lazy_haystack_setup():
ES_REINDEX_TIMEOUT = config('ES_REINDEX_TIMEOUT', default=1800, cast=int)
# Setup django-axes
-AXES_BEHIND_REVERSE_PROXY = config('AXES_BEHIND_REVERSE_PROXY', default=True, cast=bool)
+AXES_PROXY_COUNT = 2
+IPWARE_META_PRECEDENCE_ORDER = ('HTTP_X_FORWARDED_FOR',)
AXES_FAILURE_LIMIT = config('AXES_FAILURE_LIMIT', default=10, cast=int)
# Setup logging and sentry

0 comments on commit 6f60b22

Please sign in to comment.