Documentation

Connect to Cloudflare

Adding CloudFlare to your project allows you to benefit from their free DDoS protection and optimisation services. It also allows Servd to manage DNS records for your project directly, so you don't have to.

Connecting a CloudFlare Account

  1. Visit the Project Settings > Domains page in the Servd Dashboard

  2. In the CloudFlare panel, enter an email address and password for your CloudFlare account.

    If you do not have a CloudFlare account, one will be created for you using these details.

  3. Your project is now connected to the account and is ready to add a domain.

Existing Cloudflare accounts which have 2 Factor Auth enabled cannot currently be connected to directly. As a work-around you can temporarily disable 2FA from within the CloudFlare dashboard, connect to Servd, and the re-enable 2FA in CloudFlare afterwards.

Every project on Servd can be connected to individual CloudFlare accounts, or you can connect multiple projects to a single one. If you share a single CloudFlare account between multiple projects all of the domains associated with those projects will be created within that one account.

Connecting to an existing CloudFlare account will not remove or edit of of the existing contents of that account. If you connect a domain which already exists within your CloudFlare account, Servd will find and use that existing domain and all of its settings rather than try to create a new one.

Adding a Domain to your CloudFlare Account

Once connected to your CloudFlare account you need to add specific registered domains to you CloudFlare account which match the domains which you have associated with your Servd project.

  1. Visit the Project Settings > Domains page in the Servd Dashboard

  2. If you have not yet added the domain or subdomain to the Domains panel, do so now.

  3. Find the registered domain in the CloudFlare panel and click 'Connect to CloudFlare'

  4. The domain has now been created in your CloudFlare account and linked to your Servd project.

    If the domain already existed with another domain registrar, your DNS records will be copied over automatically.

    If the domain didn't already exist within your CloudFlare account, it will also contain some initial DNS records required to send traffic to the Servd platform.

Update Your Nameservers To Point To CloudFlare

As well as connecting your Servd project to CloudFlare, you also need to configure your domain name to use CloudFlare as its authoritative source for DNS records. You can do this by updating your domain's nameservers to point to the nameservers shown in the Servd dashboard for your domain.

You can find instructions for this in your Domain Registrar's documentation.

Once complete, CloudFlare will detect the change and generate valid SSL certificates for you automatically. Incoming traffic will also begin flowing through CloudFlare if you have CloudFlare proxying enabled.

Edit DNS Records

Once a project is connected to CloudFlare you can edit most of its DNS records directly within the Servd dashboard. These changes are synced with CloudFlare and take effect immediately.

Update DNS Records For Servd

If your CloudFlare DNS records become out of sync with Servd, or you add some additional subdomains to your Servd project which you would like to create DNS records for, simply click the 'Update DNS for Servd' button in the DNS section of the CloudFlare panel. This will ensure that all subdomains which have been added in the Domains panel have appropriate DNS records created within the CloudFlare account.

Accessing A CloudFlare Account Outside Of Servd

If you use Servd to create a new CloudFlare account, you can still access this account via cloudflare.com using the same email and password that you provided in the Servd dashboard when initially connecting to CloudFalre. Just like a standard CloudFlare account, this allows you to tweak additional settings within the CloudFlare dashboard or subscribe to one of their paid plans in order to benefit from the additional services that they offer.