Skip to content

Commit

Permalink
Fix django-axes proxy settings
Browse files Browse the repository at this point in the history
  • Loading branch information
pdcribeiro committed Dec 15, 2020
1 parent 3a7210b commit 521b241
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions hawkpost/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,7 @@
}

# Axes Behind proxy
AXES_BEHIND_REVERSE_PROXY = True
AXES_NUM_PROXIES = 1
AXES_META_PRECEDENCE_ORDER = [
'HTTP_X_FORWARDED_FOR',
'REMOTE_ADDR',
]

0 comments on commit 521b241

Please sign in to comment.