I have Nginx + uWSGI for Python Django app.
I have the following in my nginx.conf:
nginx.conf
location / { include uwsgi_params; uwsgi_pass
Solved by changing the following Nginx config
proxy_connect_timeout 300; proxy_read_timeout 300; client_body_timeout 300; client_header_timeout 300; keepalive_timeout 300;
And UWSGI setting
http-timeout = 300 // or 'socket-timeout = 300' depending on uwsgi setting