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)

๐ŸŒš Life is too short to browse without dark mode