Setup Custom Domain

You can connect a single custom domain to each of your workspaces. Follow the steps below to connect your domain/subdomain.

Requirements

  • A domain or subdomain

  • A Cloudflare Account

Set your domain in Lancepilot

First you need to go to https://lancepilot.com/dashboard > settings > setup custom domain. From there you need to add your custom domain and click “Update Custom Domain Settings”

Sign in to your Cloudflare Account

Visit Cloudflare and sign in to your account. If you don’t have a account in Cloudflare you need to sign up view the Sign up in Cloudflare docs.

Sign Up to a new Cloudflare Account

Visit Cloudflare then create a new account in Cloudflare. After you have created a new account you will see a page like the screenshot below, Then you need to add a site for your domain. Click on “Add Site” for adding a site.

Type your domain and click on “Continue”

Select the “Free” plan and click “Confirm Plan”

Click on “Start quick scan”

Click on “Continue”

On this step you need to change the “nameservers” of your domain to the Cloudflare nameservers shown when you are creating the site. To change the nameservers visit your domain provider platform and from there change the nameservers of your domain to the nameservers shown to you in Cloudflare when creating the site. Below is an example.

Changing nameservers might take 24 - 48 hours to propagate.

Click on “Continue to “YOUR DOMAIN” overview”

Configure custom domain from Cloudflare

Go to the "overview" page of your Cloudflare site that you added. Now once you are on the “overview” page of your site in Cloudflare you can see a option called “DNS” on the left sidebar click on that option and then it will open up a new page for you to manage your domain’s DNS records. From there you need to add a “A” record with the name “@” and the content should be the “IP Address” shown in LancePilot “setup custom domain” section. If you are using a subdomain use the subdomain name instead of the "@"

For root domain add the A record with name "@" and for subdomain add the A record with name of the subdomain so if the domain is "whatsapp.domain.com" the name would be "whatsapp"

Set the SSL mode in Cloudflare

On this step you need to go to the “SSL” section from the left sidebar and from there select the “full” mode for SSL.

Congratulations! 🎉 You have completed setting up your custom domain.

Last updated