this post was submitted on 30 Jan 2025
2 points (100.0% liked)

PieFed help

412 readers
1 users here now

It's seems right that we should have a local community to help us all with PieFed

founded 1 year ago
MODERATORS
 

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.

top 3 comments
sorted by: hot top controversial new old
[–] rimu@piefed.social 1 points 2 months ago (1 children)

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.social 1 points 2 months ago (1 children)

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 2 points 2 months ago* (last edited 2 months 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