CyberPanel have recently launched High Availability feature where you need to select a Cloudflare API to switch DNS in case Main server goes down. We will use your Cloudflare API to switch DNS to Fail over server so that your sites remain online.
Follow the article below to configure Cloudflare API so that you can start creating clusters.
In the first step, you have to log in to your Cloudflare to get an API key. Visit here to log in to Cloudflare.
In Cloudflare dashboard
2. In the top bar click on API Tokens then check the Global API key in the Keys section below.
3. Then Click the View button in front of the Global API Key.
4. You can see the API key in the prompt window.
This will ask for your Cloudflare password. Provide the details and press View.
You can see your API key copy this key and move to the next step.
Go to https://cloud.cyberpanel.net/ provide your login details and login to your CyberPanel Cloud account.
3. Configure your Cloudflare to Cyberpanel Cloud:
Once you logged in to the cloud account,
2. In the Cloudflare screen you have to provide all required information.
After providing all the information click Create button.
Below the add API key, you can see already configured keys.
You are now ready to create Highly Available Clusters.
In version v2.0.0, CyberPanel has added the ability to synchronize DNS entries between Cloudflare and CyberPanel DNS on your own server
Cloudflare is reverse proxy service, which offers certain features such as
In order to use Cloudflare the nameservers of the domain are changed to the ones provided by Cloudflare and that means any changes done such as adding subdomains or changing mail providers or using a new DKIM key on CyberPanel have to be manually inputted in CloudFlare's DNS panel. You have to repeat the process for every change you make to every domain on your account on CyberPanel.
That's a lot of manual data entry and we at CyberPanel made it easier for you to do by adding Cloudflare integration right into your CyberPanel.
CyberPanel has added deep integration with Cloudflare which can automatically do the following on your behalf
From version v1.9.5 onwards, you can use Cloudflare integration by going into DNS-> Cloudflare
You will be greeted by a screen like this
In order to obtain API token from Cloudflare click the avatar on the right of you Cloudflare account and under profile setting click the API token tab
Click on the blue "View" button next to Global API Key. Enter your password to get your API token key
Please enter the email address that you use on the Cloudflare account and you Cloudflare API token generated in the last step on Cloudflare setting page in CyberPanel and select Enable for Sync local Records to Cloudflare
Click save
On the next screen, you can add remove or sync your DNS between CyberPanel and Cloudflare
Voila, in less than 10 minutes we were able to integrate Cloudflare with Cyberpanel and we have made DNS updates easy as a breeze directly from the CyberPanel