the simplest way to assess the 504 error is always to retry the web site. Give it some seconds after which endeavor to revisit the website.
Find the configuration file: The NGINX configuration file is typically https://woracious.com/seo/ramifications-of-the-504-error-on-seo/