Welcome to Centmin Mod Community
Register Now

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

    54,524
    12,211
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,780
    Local Time:
    3:22 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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

    54,524
    12,211
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,780
    Local Time:
    3:22 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  3. David Schargel

    David Schargel Premium Member Premium Member

    38
    9
    8
    Feb 2, 2020
    Portland Oregon US
    Ratings:
    +23
    Local Time:
    9:22 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

    54,524
    12,211
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,780
    Local Time:
    3:22 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Thanks for the extra insight/info :D (y)