Alternative: Confirm that the DNS settings are accurate and that the domain names used in the NGINX configuration files are resolving to the correct IP addresses. You may have to switch DNS documents or use IP addresses https://woracious.com/seo/ramifications-of-the-504-error-on-seo/