In this step we will add a new DNS record for our white label app and point it at myDevices. This will allow our customers to finally access our app using our custom domain.
In this final step we will complete example of using freeiot.io as our custom domain.
Log into your Cloudflare dashboard, select your domain and then select DNS.
Select +Add Record to begin creating a new record. Be sure to use the following:
Type: CNAME
Name: The subdomain that you want to use when your customers access your white label app. For our example, we will use http://app.freeiot.io for our app, so we specify app.
💡 Note: You must use a subdomain, such as iot.mycompany.com. Not doing so will result in non-working app.Target: Use the myDevices URL shown in your white label console > White Label Settings screen. For our example, this is freeiot.mydevices.com.
TTL: Leave this at its default (Auto).
Proxy Status: Be sure this is enabled (Proxied).
💡 Note: Be sure that Proxy Status is enabled. Previously when we were setting up DNS in Cloudflare for our existing domain, we disabled it for those entries – but in this case it must be enabled.Don’t forget to click Save at which point you should see your entry listed in your DNS settings.
Your setup in GoDaddy and Cloudflare is complete. You can now proceed with the final step in verifying and completing the setup for your app.