I was following the instructions here (https://codeberg.org/rimu/pyfedi/src/branch/main/INSTALL.md#cdn) about adding Cloudflare tokens. I am unsure where to find the API token for CLOUDFLARE_ZONE_ID. The only things I am seeing are Global API Key and Origin CA Key and I was wondering if it’s one of those now. It seems like Cloudflare is constantly changing and moving things which gets confusing sometimes.

I’ve been writing up an installation guide for docker installs that’s hopefully a bit more straight forward for new comers. It includes setting up a Cloudflare tunnel and I would like to add this in too.

  • Rimu@piefed.social
    link
    fedilink
    English
    arrow-up
    1
    ·
    14 days ago

    Yeah Cloudflare has two different types of API token. The ones we want are under “My Profile” -> “API Tokens”. We need a token that has the “Zone.Cache Purge” permission:

    screenshot

    Your help with documentation will be very much appreciated, as you can imagine I have a lot to deal with so I rarely get to the documentation tasks.

    • taters@piefed.socialOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      14 days ago

      I was able to generate a Zone.Cache Purge token for CLOUDFLARE_API_TOKEN similar to your screenshot. The INSTALL.md says “CLOUDFLARE_ZONE_ID - this can be found in the right hand column of your Cloudflare dashboard in the API section.” and I’m not sure where to find this or maybe what I’m looking for.

      • Rimu@piefed.social
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        13 days ago

        In the main menu click ‘Overview’ in the top left, then scroll down past all the pretty traffic graphs and look for the Zone ID in the bottom right:

        screenshot

        They hid that one pretty well, huh