2 ms·
I've been using a relatively small vm with caddy to act as a reverse proxy, this can pass the client IP (X-Forwarded-For) down into the relevant services. I'll
by tracker1 4y ago
I've been using a relatively small vm with caddy to act as a reverse proxy, this can pass the client IP (X-Forwarded-For) down into the relevant services. I'll usually wrap a logger in the context, so request id and client ip are used, and a request id is passed downstream to peer services per request as well.
- GordonS 4y agoI've done this before too. Another approach is to front the site with Cloudflare, which passes the original IP in an HTTP header.