Express trust proxy: architecture note for IP, protocol and hostname behind a reverse proxy
An architecture note on Express trust proxy: how req.ip, req.protocol and req.hostname change behind a reverse proxy, the smallest safe trust setting, spoofing and rate-limit failure modes, and when to redesign.