Type | Value |
---|---|
Boolean |
If If |
IP addresses |
An IP address, subnet, or an array of IP addresses and subnets to trust as being a reverse proxy. The following list shows the pre-configured subnet names:
You can set IP addresses in any of the following ways:
When specified, the IP addresses or the subnets are excluded from the address determination process, and the untrusted IP address nearest to the application server is determined as the client’s IP address. This works by checking if |
Number |
Use the address that is at most |
Function |
Custom trust implementation.
|
req.hostname
is derived from the value set in the X-Forwarded-Host header, which can be set by the client or by the proxy. req.protocol
. req.ip
and req.ips
values are populated based on the socket address and X-Forwarded-For header, starting at the first untrusted address.