Resolve 504 Gateway Time Out Error in Python FLASK web app

Job ID: 31757742

Budget: $10 – $30 USD

I have this Python Flask web app running on my Centos 6 server with NGINX web server already running and serving some domains.

But for some reason I don't know, the app keeps throwing "504 Gateway Time-out".

The same app when run locally runs just fine and there seems to be no issue with the code.
I need a Python developer with experience with hosting flask app to troubleshoot and fix it.

I will share all other specific details in chat. Please see attachments for the error screenshot.
Related categories: Python Linux Nginx Flask CentOs