[Fixed]-Nginx and uWSGI gives "504 Gateway timeout"

26👍

I think you are running uwsgi in http mode --http 0.0.0.0:8002 but you have configured nginx as uwsgi proxy. You should change your uwsgi script to something like:

 uwsgi --socket :8002 --module uwsgi --harakiri 5

Note that if you are running nginx and uwsgi on the same machine is better to use unix sockets

👤sax

Leave a comment