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.

  1. Log into your Cloudflare dashboard, select your domain and then select DNS.

  2. Select +Add Record to begin creating a new record. Be sure to use the following:

    1. Type: CNAME

      This is a Common error introduced during set up. It must be a CNAME record.

    2. 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.

    3. Target: Paste the myDevices URL shown in your white label console > White Label Settings screen. For our example, this is freeiot.mydevices.com.

    4. TTL: Leave this at its default (Auto).

    5. 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.

    6. 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.