The easiest way to evaluate the 504 error is to retry the website. Give it a handful of seconds after which try to revisit the web site.
Locate the configuration file: The NGINX configuration file is typically https://woracious.com/seo/ramifications-of-the-504-error-on-seo/