I have a CouchDB database running on a Ubuntu 16.04 droplet. Yesterday I registered a domain and configured my DNS settings so that the domain points to the droplet. This seems to be working:

https://mxtoolbox.com/SuperTool.aspx?action=a%3aeduquilt.com&run=toolpage

But I’m unable to reach the CouchDB server through the domain. Compare:

http://159.203.60.117:5984 - Receives a response
http://eduquilt.com:5984 - Doesn’t receive a response

Chrome gives a DNS_PROBE_FINISHED_NXDOMAIN error. Firefox just gives a “We’re having trouble finding that site.”

Ultimately, I have a vue-cli static site, an expressjs node server, and this CouchDB server, all of which I’d like to serve from this droplet over SSL. I know there are any number of ways to approach this, but from my poking around it seems like I might be best off installing nginx and configuring it as a reverse proxy for each of these other resources. This would mean I could configure the SSL cert only once (on nginx), and I would be absolved of CORS issues since the browser could be fetching all resources from the same domain / port, with nginx redirecting traffic under the hood.

Is it a sane option to begin with vue-cli’s Docker / nginx deployment tutorial, and then add settings for the express server and couchdb server?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
2 answers

Update from several hours later: it works!

I guess (this IS a guess, DNS is mysterious to me) that some portions of the DNS propagation had completed (hence the partial success on mxtoolbox) and that some other portions had not. I had waited overnight, so I figured that wouldn’t be the case.

Update from several hours later again: it doesn’t work. This is a surprise. Working is one thing, not working is another, but skipping back and forth is completely confusing.

Any ideas?

Submit an Answer