https://rifco.ru/blog/2016/06/22/nginx-504-gateway-time-out/
Nginx: 504 Gateway Time-out