Nginx upstream timed out (110: Connection timed out)

had the same problem with a company website foreign exchange send money online, tried to rebot the server and change the timeout to 1000 sec and then try it out.