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

feat: add real_ip_recursive to nginx.conf #4332

Merged
merged 5 commits into from
May 31, 2021
Merged

feat: add real_ip_recursive to nginx.conf #4332

merged 5 commits into from
May 31, 2021

Conversation

keilon
Copy link
Contributor

@keilon keilon commented May 28, 2021

What this PR does / why we need it:

Enable to set real_ip_recursive to nginx.conf. When apisix is behind multiple layer network, the real client ip may not be recognized. See also http://nginx.org/en/docs/http/ngx_http_realip_module.html#real_ip_recursive

Pre-submission checklist:

  • Did you explain what problem does this PR solve? Or what new features have been added?
  • Have you added corresponding test cases?
  • Have you modified the corresponding document?
  • Is this PR backward compatible? If it is not backward compatible, please discuss on the mailing list first

Copy link
Contributor

@Firstsawyou Firstsawyou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@keilon keilon requested a review from spacewander May 28, 2021 08:16
t/cli/test_main.sh Outdated Show resolved Hide resolved
Copy link
Contributor

@starsz starsz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.Need to fix the conflict.

@keilon keilon requested a review from spacewander May 30, 2021 05:29
@spacewander spacewander merged commit 4d60170 into apache:master May 31, 2021
@keilon keilon deleted the resolve-conflict branch May 31, 2021 01:54
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.

5 participants