Join the community today
Become a Member

Beta Branch update addons/acmetool.sh with full Cloudflare DNS API in 123.09beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Sep 6, 2020.

  1. eva2000

    eva2000 Administrator Staff Member

    45,201
    10,279
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,933
    Local Time:
    9:25 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    update addons/acmetool.sh with full Cloudflare DNS API in 123.09beta01

    Instead of default webroot authentication, update addons/acmetool.sh with full Cloudflare DNS API domain validation for Letsencrypt SSL certificate issuance that can be optionally enabled variables for Cloudflare API Token is set in persistent config file at /etc/centminmod/custom_config.inc. Existing users need to run cmupdate command to get updated addons/acmetool.sh.

    Code (Text):
    CF_DNSAPI_GLOBAL='y'
    CF_Token="YOUR_CF_TOKEN"
    CF_Account_ID="YOUR_CF_ACCOUNT_ID"


    Cloudflare API Tokens, requires you create your Cloudflare Token API with permissions for read access to Zone.Zone, and edit/write access to Zone.DNS, across all Zones at https://dash.cloudflare.com/profile/api-tokens and to grab your Cloudflare Account ID from any of your Cloudflare domain's main dashboard's right side column listing.

    [​IMG]

    Only one Cloudflare Account is supported, so intended domains need to be within same Cloudflare Account unless you have Cloudflare Account with invited admin access to other Cloudflare Accounts and you can generate the CF API Token to include access to the other Cloudflare Accounts.

    Continue reading...

    123.09beta01 branch
     
  2. eva2000

    eva2000 Administrator Staff Member

    45,201
    10,279
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,933
    Local Time:
    9:25 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
  3. David Schargel

    David Schargel New Member

    14
    5
    3
    Feb 2, 2020
    Ratings:
    +12
    Local Time:
    4:25 AM
    For those that don't know, here's how you can find your 32-character CF_Account_ID:
    1. Log into your Cloudflare account and the account ID will appear as a 32-character string in the URL after dash.cloudflare.com/, or
    2. Within any domain, the Account ID appears towards the bottom on the right column.
    Also, you create new Tokens under "My Profile"
     
  4. eva2000

    eva2000 Administrator Staff Member

    45,201
    10,279
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,933
    Local Time:
    9:25 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    Thanks for the extra insight/info :D (y)