This blog post is a
short cheat sheet, how easy it is to configure/setup a custom domain for a Node-RED example instance on IBM Cloud for a Cloud Foundry App. To do this you need a Pay-As-You-Go or Trial-Account for the IBM Cloud.
|Cloud Foundry App Instance||Node-RED invocation in a browser|
These are the few steps I did.
- Setup a Node-RED Starter app on IBM Cloud using Cloud Foundry.
- Get an own domain from a domain provider and ensure the provider gives the ability to customize the CNAME record for the domain! In my case I used GoDaddy. At GoDaddy it is possible to configure the CNAME record.
- Follow the steps “adding and using a custom domain” in the IBM Cloud documentation.
Overview of the setup/configurations¶
In the image below we see a simplified overview of the setup/configuration.
- The URL
http://node-red.suedbroecker.comto invoke the Node-RED app in the browser.
- The configuration of the region mapping in GoDaddy. Mapping to the IBM Cloud (
custom-domain.us-south.cf.cloud.ibm.com) endpoint, where the Cloud Foundry application instance is running.
- The configuration inside IBM Cloud to map the domain the region, where the Cloud Foundry application running, in this case it’s US south region.
- The definition of the routes to access the Cloud Foundry app instance inside IBM Cloud.
Overview of the dependencies¶
The image below contains a simplified overview of the dependencies of the configuration/setup.
- Invoke the URL
http://node-red.suedbroecker.comto request the Node-RED app.
- The server routes the request to the IBM Cloud. GoDaddy has registered the mapping of the URL in the Domain Name System (DNS) Server.
- The configuration inside IBM Cloud, will route the request to the Node-RED app.
“Who is?” … this Domain¶
The gif shows the usage of the custom domain. As you can see the connection is currently not secure it uses only http so the communication is not encrypted.
I hope this was useful for you and let’s see what’s next?
#IBMCloud, #Domain, #GoDaddy, #CloudFoundy