Custom Domain: Setup a CDN or Reverse Proxy

The following article discusses how to use a CDN or Reverse Proxy as part of setting up your App for Custom Domain usage. This is the first step in using a Custom Domain and it is a required step. Do not proceed to either the following steps until this step is complete and working.

 

Verify if your Domain provider offers CDN or Reverse Proxy services

Setting up a subdomain pointing at your myDevices app URL would normally result in an SSL warning when viewed by your customers. We must solve this issue to secure traffic between your App and your users.

mceclip0.png

There are two options available to solve this, and which you choose will guide your next steps:

  1. Use a CDN

  2. Use a reverse proxy

Option 1: Use a CDN

There are a number of CDN providers out there that offer SSL termination.

  • Cloudflare (Recommended)

  • AWS Cloudfront

  • Rackspace

We recommend using Cloudflare as it offers free SSL and other services. If you choose this route, we even have a guide showing you how to set things up using Cloudflare.

See Also: we now have some tips for our partners who are looking to use Amazon CloudFront as well.

Option 2: Use a reverse proxy

Continue to use your current provider, but deploy a Load Balancer such as Nginx or HAProxy with your own certificate and proxy requests to your myDevices white label domain. This option requires more technical skill, but also offers flexibility.

What if I’m not sure?

If your provider does not support CDN or reverse proxy services, or if you are not able to configure deploy and configure a reverse proxy on your own, the easiest way to proceed is to utilize a free Cloudflare account.

We have a guide showing you how to accomplish this, using GoDaddy and Cloudflare as the examples.