deployer/docs/contrib/cloudflare.md
AbhishekKr b0207b2266
Add Cloudflare API Token support for auth, domain optional if zone_id provided (#3406)
Signed-off-by: AbhishekKr <abhikumar163@gmail.com>

Signed-off-by: AbhishekKr <abhikumar163@gmail.com>
2022-12-15 16:58:20 +01:00

1.0 KiB
Raw Blame History

Cloudflare Recipe

require 'contrib/cloudflare.php';

Source

Configuration

  • cloudflare array with configuration for cloudflare
    • service_key Cloudflare Service Key. If this is not provided, use api_key and email.
    • api_key Cloudflare API key generated on the "My Account" page.
    • email Cloudflare Email address associated with your account.
    • api_token Cloudflare API Token generated on the "My Account" page.
    • domain The domain you want to clear (optional if zone_id is provided).
    • zone_id Cloudflare Zone ID (optional).

Usage

Since the website should be built and some load is likely about to be applied to your server, this should be one of, if not the, last tasks before cleanup

Tasks

deploy:cloudflare

Source

Clears Cloudflare Cache.