Files
wp-multisite-waas/views/wizards/host-integrations/cloudflare-instructions.php
2024-11-30 18:24:12 -07:00

70 lines
3.7 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/**
* Runcloud instructions view.
*
* @since 2.0.0
*/
?>
<h1>
<?php _e('Instructions', 'wp-ultimo'); ?></h1>
<p class="wu-text-lg wu-text-gray-600 wu-my-4 wu-mb-6">
<?php _e('Youll need to get your', 'wp-ultimo'); ?> <strong><?php _e('API Key', 'wp-ultimo'); ?></strong> <?php _e('and', 'wp-ultimo'); ?> <strong><?php _e('Zone ID', 'wp-ultimo'); ?></strong> <?php _e('for your Cloudflare DNS zone.', 'wp-ultimo'); ?>
</p>
<p class="wu-text-sm wu-bg-blue-100 wu-p-4 wu-text-blue-600 wu-rounded">
<strong><?php _e('Before we start...', 'wp-ultimo'); ?></strong><br>
<?php printf(__('This integration is really aimed at people that do not have access to an Enterprise Cloudflare account, since that particular tier supports proxying on wildcard DNS entries, which makes adding each subdomain unecessary. If you own an enterprise tier account, you can simply follow <a class="wu-no-underline" href="%s" target="_blank">this tutorial</a> to create the wildcard entry and deactivate this integration entirely.', 'wp-ultimo'), 'https://support.cloudflare.com/hc/en-us/articles/200169356-How-do-I-use-WordPress-Multi-Site-WPMU-With-Cloudflare'); ?>
</p>
<h3 class="wu-m-0 wu-py-4 wu-text-lg" id="step-1-getting-the-api-key-and-secret">
<?php _e('Getting the Zone ID and API Key', 'wp-ultimo'); ?>
</h3>
<p class="wu-text-sm">
<?php _e('On the Cloudflare overview page of your Zone (the domain managed), you\'ll see a block on the sidebar containing the Zone ID. Copy that value.', 'wp-ultimo'); ?>
</p>
<div class="">
<img class="wu-w-full" src="https://wpultimo.com/wp-content/uploads/2021/04/Captura-de-Pantalla-2021-04-01-a-las-23.08.14.png">
</div>
<p class="wu-text-center"><i><?php _e('DNS Zone ID on the Sidebar', 'wp-ultimo'); ?></i></p>
<p class="wu-text-sm"><?php _e('On that same sidebar block, you will see the Get your API token link. Click on it to go to the token generation screen.', 'wp-ultimo'); ?></p>
<div class="">
<img class="wu-w-full" src="https://wpultimo.com/wp-content/uploads/2021/04/Captura-de-Pantalla-2021-04-01-a-las-23.12.19.png">
</div>
<p class="wu-text-center"><i><?php _e('Go to the API Tokens tab, then click on Create Token', 'wp-ultimo'); ?></i></p>
<p class="wu-text-sm"><?php _e('We want an API token that will allow us to edit DNS records, so select the Edit zone DNS template.', 'wp-ultimo'); ?></p>
<div class="">
<img class="wu-w-full" src="https://wpultimo.com/wp-content/uploads/2021/04/Captura-de-Pantalla-2021-04-01-a-las-23.15.03.png">
</div>
<p class="wu-text-center"><i><?php _e('Use the Edit Zone DNS template', 'wp-ultimo'); ?></i></p>
<p class="wu-text-sm"><?php _e('On the next screen, set the permissions to Edit, and select the zone that corresponds to your target domain. Then, move to the next step.', 'wp-ultimo'); ?></p>
<div class="">
<img class="wu-w-full" src="https://wpultimo.com/wp-content/uploads/2021/04/Captura-de-Pantalla-2021-04-01-a-las-23.17.58.png">
</div>
<p class="wu-text-center"><i><?php _e('Permission and Zone Settings', 'wp-ultimo'); ?></i></p>
<p class="wu-text-sm"><?php _e('Finally, click Create Token.', 'wp-ultimo'); ?></p>
<div class="">
<img class="wu-w-full" src="https://wpultimo.com/wp-content/uploads/2021/04/Captura-de-Pantalla-2021-04-01-a-las-23.19.52.png">
</div>
<p class="wu-text-center"><i><?php _e('Finishing up.', 'wp-ultimo'); ?></i></p>
<p class="wu-text-sm"><?php _e('Copy the API Token (it won\'t be shown again, so you need to copy it now!). We will use it on the next step alongside with the Zone ID', 'wp-ultimo'); ?></p>
<div class="">
<img class="wu-w-full" src="https://wpultimo.com/wp-content/uploads/2021/04/Captura-de-Pantalla-2021-04-01-a-las-23.21.47.png">
</div>
<p class="wu-text-center"><i><?php _e('Done!', 'wp-ultimo'); ?></i></p>