Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proxy NGINX is not sending REMOTE_ADDR - not working on production. #251 #252

Closed
wants to merge 2 commits into from

Conversation

hvitis
Copy link

@hvitis hvitis commented Jun 28, 2022

NGINX can block requests by default or it might be not yet set up on production env.
Additionally some requests or settings can wrongly pass the IP so it needs to be verified.
Finally, the IP needs to always be set due to default restrictions on models. GenericIPAddressField(_('ip address'))

@hvitis hvitis changed the title PR for 251 #251 Proxy NGINX is not sending REMOTE_ADDR - not working on production. #251 Jun 28, 2022
@hvitis hvitis changed the title #251 Proxy NGINX is not sending REMOTE_ADDR - not working on production. #251 Proxy NGINX is not sending REMOTE_ADDR - not working on production. Jun 28, 2022
@hvitis hvitis changed the title Proxy NGINX is not sending REMOTE_ADDR - not working on production. Proxy NGINX is not sending REMOTE_ADDR - not working on production. #251 Jun 28, 2022
@felixxm felixxm mentioned this pull request Mar 7, 2023
@ramiboutas
Copy link

Could some package author merge this pull request?

I implemented those changes in my small app and now it is working. Many thanks @hvitis!

image

@kylef
Copy link
Collaborator

kylef commented Mar 26, 2023

Please search existing similar PRs. This is very similar to #60 and suffers same problems outlined in #60 (comment) .

Furthermore, wouldn't this change break support for IPv6 addresses amongst others?

@hvitis hvitis closed this by deleting the head repository May 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants