gadicc / meteor-headers

Access HTTP headers on both server and client. Client IP with proxy support.
https://atmospherejs.com/gadicohen/headers
GNU Lesser General Public License v3.0
61 stars 21 forks source link

getClientIP() is undefined in production #40

Closed pajooh closed 9 years ago

pajooh commented 9 years ago

I've just installed this app, and can't getClientIP(). i'm calling this client side inside a click event handler, and disabling/anabling appCache, or using inside headers.ready does not help. my app is behind an nginx proxy and i already set appropriate HTTP_FORWARDED_COUNT=1 any help would be highly appreciated

pajooh commented 9 years ago

actually, nginx config to pass user IP was not set