Using custom domains with restdb.io and Let's Encrypt

restdb.io databases support using your own domains for dynamic web pages and for the REST API of each database.

If your domain is "yabbadb.com" for example, you can set it up so that https://www.yabbadb.com points to a dynamic (or hosted) page in your database and https://api.yabbadb.com/rest/ points to your REST API (actually both addresses can be used to access the REST API).

restdb.io Settings

How to set up your domain

In order to set up a regular (unsecured) domain, do the following:

  1. click the "Users and Settings" button for your database and navigate to the "Webhosting" tab.
  2. Add your domain in the list.
  3. Take note of the IP address of the restdb.io hosting server
  4. Visit your DNS provider and create an "A" record with your domain name and make it pointing to the IP address of the hosting server.

How to set up a secure domain (SSL)

restdb.io supports secure (SSL) domains with no extra configuration using Let's Encrypt. Just follow the steps in the previous section but swap out the hosting server with the IP address of our secure hosting server. The TSL/SSL certificate will be retrieved on first access and then automatically renewed every 3 months.

Here you can visit an example of a database-hosted site using the secure setup: restdb.site