# Connect Cloudflare for website deployment

Source: https://skro.eu/docs/deploy-website/cloudflare-integration

Connect Cloudflare to Skro for domain verification and DNS configuration during website deployment.

This API integrations gives you the ability to create DNS records automatically for domain verification and website distribution.

<Steps>

## Step 1. Log in to your Cloudflare account or create a new one [#step-1-log-in-to-your-cloudflare-account-or-create-a-new-one]

1. Go to the [https://cloudflare.com](https://cloudflare.com) web-page.

2. Log in to your account or create a new one.

![Cloudflare Integration step 1](/images/docs/cloudflare-int-1.png)

## Step 2. Generate API Token [#step-2-generate-api-token]

1. Now you are able to sign in to your Cloudflare Console.

2. On the top right corner click **Profile** icon and navigate to the **My Profile** → **API Tokens** and click **Create Token** to generate new API Token.

![Cloudflare Integration step 2](/images/docs/cloudflare-int-2.png)

3. Find **Edit Zone DNS** row and click **Use template**.

![Cloudflare Integration step 2](/images/docs/cloudflare-int-3.png)

4. Under permissions section select **Edit** and from Zone Resources section choose **All Zones** and click **Continue to summary**.

![Cloudflare Integration step 2](/images/docs/cloudflare-int-4.png)

5. On this step you will see overview of your API token permissions and then click **Create Token**.

![Cloudflare Integration step 2](/images/docs/cloudflare-int-5.png)

6. Your API Token is now generated. Copy the value to clipboard.

![Cloudflare Integration step 2](/images/docs/cloudflare-int-6.png)

## Step 3. Add integration to Skro [#step-3-add-integration-to-skro]

1. Log in to Skro and navigate to the **Settings** → **Integrations** and scroll down to **Servers / Domains - Deploy Websites & Issue SSL Certs** section and click **Add**.

![Cloudflare Integration Step 3](/images/docs/cloudflare-int-7.png)

2. Click **Cloudflare** logo.

![Cloudflare Integration Step 3](/images/docs/cloudflare-int-9.png)

3. Add your Cloudflare API Token and click **Save & Close**.

![Cloudflare Integration Step 3](/images/docs/cloudflare-int-10.png)

4. Your Cloudflare API integration is connected.

<Card title="Get started with website domain setup" href="/docs/deploy-website/how-to-setup-domain-to-get-ssl-certificate" />

</Steps>

## Related guides [#related-guides]

<Cards>

<Card title="Website deployment on AWS" href="/docs/deploy-website/about-aws-deployment" />

<Card title="Deploy a website" href="/docs/deploy-website/how-to-deploy-website" />

</Cards>
