-
Notifications
You must be signed in to change notification settings - Fork 196
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
Add X-Real-IP header when querying the backend #1113
Comments
This is a good idea! It would help debugging traffic, by being more succint than the The We could use a The behaviour would be:
(commented after a discussion with @FlorentinDUBOIS and @Yoda-BZH) |
sounds good :) |
I think defining your own header is the correct decision. There is lots of confusion over Note that the Note that providers like Cloudflare do much the same what you have proposed here in that they have their own header called |
Hello,
Would it be possible to have the header
X-Real-IP
when sozu requests the backend ?Relying on X-Forwarded-For is unsecure as it may be forged by the client.
A typical request would look like :
Typical nginx configuration to declare X-Real-IP:
If the header already exists in the request, the field should be overwritten.
The text was updated successfully, but these errors were encountered: