Nginx reverse proxy causing 504 Gateway Timeout

proxy_read_timeout 10000;
https://stackoverflow.com/questions/24453388/nginx-reverse-proxy-causing-504-gateway-timeout