This tutorial guides you through the DNS configuration process to connect your domain managed on Cloudflare to a site hosted by Servd.

<aside> ▶️

Watch: How to update Cloudflare for Servd

</aside>

Step 1: Access Your Servd Project

  1. Log into your Servd dashboard at https://dashboard.servd.host.
  2. Select the project you want to configure.
  3. Navigate to Domains under the Environment Settings.

Step 2: Servd Verification and SSL Setup

  1. Within the Project Settings > Domains tab in Servd, you'll see a button for Ownership Pending. Click the button and this will give you a txt record to add to Cloudflare.
  2. After adding the record to Cloudflare click the refresh icon.
  3. Then in Servd click the SSL Pending button. This will give you a CNAME record to be added to Cloudflare. This record should not be proxied in Cloudflare (grey cloud). Wait a minute or two and then proceed.
  4. After adding the record to Cloudflare click the refresh icon.

Step 3: Update Servd Environment Variables (For Craft websites)

  1. Within Servd navigate to Production > Environment Variables
  2. Update the following .env variables to point to the site (for example, https://cantilever.co)
    1. BASE_URL
    2. PRIMARY_SITE_URL
    3. VITE_DEV_SERVER_PUBLIC

Step 4: Configure DNS in Cloudflare

  1. Log in to your Cloudflare account at https://dash.cloudflare.com.
  2. Select the domain you'd like to configure.
  3. Navigate to the DNS tab.
  4. Within Servd click the DNS button. This will display a CNAME and an A Record.
  5. Go back to Cloudflare and update the A record and the CNAME with the values copied from Servd.