Post
Topic
Board Announcements (Altcoins)
Re: [ANN] [TRON] Positron Technologies Corporation - A Long Term Vision - New Forum
by
abel1337
on 10/05/2015, 00:41:50 UTC
Oh, thats right. I'm using a reverse nginx proxy to the nodejs server for speed and security reasons, so everyone's IP is logged as 127.0.0.1 (localhost)

That explains the lack of unique visitors Smiley

You need to specify a custom log format to log the X-Forwarded-For header.

Code:
app.use(express.logger(':req[X-Forwarded-For] - - [:date] ":method :url HTTP/:http-version" :status :res[content-length] ":referrer" ":user-agent"'));