Nginx 504 Timeouts and Self-Signed Certificate

On development, my WordPress dashboard was loading extremely slowly and getting 504 Timeouts regularly. An error message would appear at the top of each page. The dev environment was using a self-signed certificate.

WordPress could not establish a secure connection to

So after reading this blog post I SSH’d into the Vagrant box and added:

to /etc/hosts. Migrate DB Pro was throwing similar errors so I added the IP and URL and it took that error away as well. But that plugin is still having troubles…

I’m just wondering if the reason these errors appear are fixable without the workaround.