I\'m running django on gunicorn+nginx. I\'m facing a problem with file uploads. Actually uploads are working fine but gunicorn times out thus causing this in nginx:
This is not an nginx timeout, but probably a Gunicorn timeout. Gunicorn defaults to a 30 second timeout.
In general, you should fix this by not having an endpoint that takes longer than 30 seconds to return, but if it is a seldom used endpoint, you can also just increase the gunicorn timeout.
If you do this, you should probably also increase the number of gunicorn worker processes as well.
To increase the timeout and workers for gunicorn, you can add the following command-line options on start:
gunicorn --timeout 120 --workers