Update ipware (fix CF IPs)

This commit is contained in:
R. Miles McCain
2022-09-13 12:19:43 -07:00
parent 1280433a49
commit 6f715b5b77
3 changed files with 18 additions and 7 deletions

View File

@@ -377,3 +377,17 @@ USE_RELATIVE_MAX_IN_BAR_VISUALIZATION = (
CORS_ALLOW_ALL_ORIGINS = True
CORS_ALLOW_METHODS = ["GET", "OPTIONS"]
# IPWare Precedence Options
IPWARE_META_PRECEDENCE_ORDER = (
'HTTP_CF_CONNECTING_IP',
'HTTP_X_FORWARDED_FOR', 'X_FORWARDED_FOR', # client, proxy1, proxy2
'HTTP_CLIENT_IP',
'HTTP_X_REAL_IP',
'HTTP_X_FORWARDED',
'HTTP_X_CLUSTER_CLIENT_IP',
'HTTP_FORWARDED_FOR',
'HTTP_FORWARDED',
'HTTP_VIA',
'REMOTE_ADDR',
)