You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My REMOTE_ADDR is always blank. I just ran into an issue where a Django package expected request.META['REMOTE_ADDR'] to be the user's IP address and it's causing my application to error out.
My current solution is to add a middleware to manually use HTTP_X_FORWARDED_FOR to overwrite REMOTE_ADDR, but leaving this issue here if anyone using this repo has an NGINX setting they use to set the REMOTE_ADDR setting.
The text was updated successfully, but these errors were encountered:
My
REMOTE_ADDR
is always blank. I just ran into an issue where a Django package expectedrequest.META['REMOTE_ADDR']
to be the user's IP address and it's causing my application to error out.My current solution is to add a middleware to manually use
HTTP_X_FORWARDED_FOR
to overwriteREMOTE_ADDR
, but leaving this issue here if anyone using this repo has an NGINX setting they use to set theREMOTE_ADDR
setting.The text was updated successfully, but these errors were encountered: