Skip to content

How i suppose to do the proxy config to get the remote ip? #18

@prime-voucher

Description

@prime-voucher

app.register(require('fastify-vhost'), { upstream: 'http://localhost:3000', hosts: ['xxx.xxx.com', 'bbb.xxx.com'], });

and i already put
trustProxy: true on the fastify setup.

But still got 127.0.0.1 on the request.ip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions