Alternative: Confirm the DNS options are suitable and the domain names Employed in the NGINX configuration documents are resolving to the proper IP addresses. You might need to switch DNS information or use IP addresses https://woracious.com/seo/ramifications-of-the-504-error-on-seo/