I think you are running uwsgi in http mode --http 0.0.0.0:8002
but you have configured nginx as wsgi proxy change your uwsgi script as:
uwsgi --socket :8002 --module wsgi --harakiri 5
Note that if you are running nginx
and uwsgi
on the same machine is better to use unix sockets