Skip to content

请问nginx反代grpc。xray获取访问者真实IP,如何修改配置文件? #462

Answered by ghost
ghost asked this question in Q&A
Discussion options

You must be logged in to vote

可以使用 Proxy Protocol 传递客户端 IP 地址。

注:

  • 仅在 v1.4.2 后,gRPC 才会获取远程地址。
  • acceptProxyProtocol 需要写在 sockopt 中。

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@ghost
Comment options

Comment options

You must be logged in to vote
4 replies
@ghost
Comment options

@ghost
Comment options

@ghost
Comment options

@0oook
Comment options

Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #460 on March 31, 2021 22:55.