You are using uWSGI.
In my world, we use gunicorn (and therefore HTTP instead of uWSGI) and our front-end proxies pass the remote IP address in the X-Real-IP header, so we just proxy_pass_header X-Real-IP. So, I'm mostly guessing here. You'll probably need to do something like this:
Code:
uwsgi_param REMOTE_ADDR $http_x_real_ip;
Things will be different if your front-end isn't passing you X-Real-IP.
My google-fu was failing out on finding an example of uWSGI+nginx+X-Real-IP, unfortunately, so your mileage may vary. This is, in part, why I use gunicorn.
_________________
Code:
/* TODO: need to add signature to posts */