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
- Log into your Servd dashboard at https://dashboard.servd.host.
- Select the project you want to configure.
- Navigate to Domains under the Environment Settings.
Step 2: Servd Verification and SSL Setup
- 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.
- After adding the record to Cloudflare click the refresh icon.
- 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.
- After adding the record to Cloudflare click the refresh icon.
Step 3: Update Servd Environment Variables (For Craft websites)
- Within Servd navigate to Production > Environment Variables
- Update the following .env variables to point to the site (for example, https://cantilever.co)
BASE_URL
PRIMARY_SITE_URL
VITE_DEV_SERVER_PUBLIC
Step 4: Configure DNS in Cloudflare
- Log in to your Cloudflare account at https://dash.cloudflare.com.
- Select the domain you'd like to configure.
- Navigate to the DNS tab.
- Within Servd click the DNS button. This will display a
CNAME
and an A Record
.
- Go back to Cloudflare and update the
A record
and the CNAME
with the values copied from Servd.