DEV Community

D
D

Posted on

Get real ip of Fastify

const app = fastify({
  trustProxy: true,
});
Enter fullscreen mode Exit fullscreen mode
location / {
    proxy_pass http://cryptotako/;
    proxy_set_header X-Forwarded-for $remote_addr;
}
Enter fullscreen mode Exit fullscreen mode

Top comments (0)