Configuration option for running behind a reverse proxy
naxxfish opened this issue · 2 comments
naxxfish commented
As per Express behind a proxy there is a configuration option that's required to be set if you want the remote IP to be reported correctly, namely:
app.set('trust proxy', true);
We should probably provide a config option to turn this on.
unknowndomain commented
We setup Nginx to set X-Forwarded-For: <ip>
but with trust proxy set to 'loopback' it didn't work.
More work needed to test this and make it work.
naxxfish commented
Could we see the exact nginx config that was used for this ?