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

反向代理可否加入客户端的IP为header头,以便后端的nginx识别客户IP #617

Open
AKEBI-NUKUI opened this issue Dec 5, 2024 · 0 comments

Comments

@AKEBI-NUKUI
Copy link

在基于http的协议上可以直接添加类似nginx的
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
这种效果。
如果是基于https的话可否加入基于每一个host的证书公私钥解密再添加header接着再反代出去?

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

No branches or pull requests

1 participant