roadrunner-server / roadrunner

🤯 High-performance PHP application server, process manager written in Go and powered with plugins
https://docs.roadrunner.dev
MIT License
7.84k stars 407 forks source link

[💡 FEATURE REQUEST]: Configuration for the `proxy_ip_parser` middleware #1515

Open victor-sudakov opened 1 year ago

victor-sudakov commented 1 year ago

Plugin

HTTP Middleware (any)

I have an idea!

Please add a configuration option to the proxy_ip_parser middleware with the ability to select trusted and untrusted headers. For example, if the X-Real-IP header can be trusted and the X-Forwarded-* headers cannot be trusted, I would like to be able to configure the proxy_ip_parser to ignore the X-Forwarded-* headers.

An ability to add a custom trusted header like CF-Connecting-IP would be nice too.

rustatian commented 1 year ago

Hey @victor-sudakov 👋🏻

Let's wait for the community 😃