Solution: ensure which the DNS settings are right and the domain names Employed in the NGINX configuration files are resolving to the correct IP addresses. You might require to modify DNS information or use IP addresses https://woracious.com/seo/ramifications-of-the-504-error-on-seo/