trust-proxy

trust the proxy for protocol and remote IP address

npm install trust-proxy
1 downloads in the last week
4 downloads in the last month

trust-proxy

Middleware to trust the closest proxy for IP and protocol data. For if you're behind a reverse proxy or load balancer (such as on Nodejitsu) Fixes req.connection.remoteAddress, adds req.proto and req.secure. Inspired by the trust proxy option of Express.

npm loves you