How many reverse proxies sit in front of the app, for resolving the client IP.
false / 0 (default): ignore forwarding headers and use the socket
address. Any client can put anything in X-Forwarded-For, so trusting it
without a proxy lets them pick their own rate-limit bucket.
true: shorthand for 1 (a single proxy such as nginx or a load balancer).
n: n trusted proxies. The client IP is the address n hops from the
right of X-Forwarded-For + socket address — each proxy appends the
address it received the request from, so entries further left than that
were written by the client and are ignored.
How many reverse proxies sit in front of the app, for resolving the client IP.
false/0(default): ignore forwarding headers and use the socket address. Any client can put anything inX-Forwarded-For, so trusting it without a proxy lets them pick their own rate-limit bucket.true: shorthand for1(a single proxy such as nginx or a load balancer).n:ntrusted proxies. The client IP is the addressnhops from the right ofX-Forwarded-For+ socket address — each proxy appends the address it received the request from, so entries further left than that were written by the client and are ignored.