DEV Community

loading...

Get real ip of Fastify

dongri profile image D ・1 min read
const app = fastify({
  trustProxy: true,
});
location / {
    proxy_pass http://cryptotako/;
    proxy_set_header X-Forwarded-for $remote_addr;
}

Discussion (0)

pic
Editor guide