What number of proxies sit in front of an express app deployed on Render?

I have a node/express app deployed to render.com that uses express-rate-limit to add some app-level rate limiting.

Do apps deployed on render.com have a static number of proxies? express-rate-limit suggests passing a hard number to “trust proxy”.

In testing, it seems like 3 is the magic number that correctly returns the client’s actual ip address: app.set('trust proxy', 3) for my app.

Is that value safe to use or is the number of proxies bound to change?

Thanks!

Using the header True-Client-IP is the way to get the IP address of the clients IP address - Understanding the True-Client-IP Header · Cloudflare Network settings docs

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.