Step 3: Set up white label subdomain in Cloudflare
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 the example of configuring our App so that users can access it from the Custom URL https://app.freeiot.io.
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
This is a Common error introduced during set up. It must be a CNAME record.Name: The subdomain that you want to use when your customers access your white label app. For our example, we will use https://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: Paste 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 for this entry 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.
Go to Completing your setup.