Skip to content

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.

We should add corresponding test cases. https://github.com/apache/apisix/blob/master/t/cli/test_main.sh

@keilon keilon requested a review from spacewander May 28, 2021 08:16
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