1.5 KiB
1.5 KiB
Cloudflare Configuration Guide for Changemaker.lite
This guide will help you properly configure Cloudflare credentials for use with Changemaker.lite's production deployment.
Finding Your Zone ID
The Zone ID is a unique identifier for your domain in Cloudflare.
- Log in to the Cloudflare Dashboard
- Select your domain (e.g., cmlite.org)
- On the right sidebar under "API", you'll see "Zone ID"
- Copy this value - it should look something like:
1a2b3c4d5e6f7g8h9i0j1k2l3m4n5o6p
Creating an API Token
You need an API token with proper permissions to manage DNS records and access policies.
- Go to Cloudflare Dashboard > Profile (top right) > API Tokens
- Click "Create Token"
- Use the "Edit zone DNS" template (or create a custom token)
- For a custom token, ensure it has the following permissions:
- Zone - DNS - Edit
- Zone - Settings - Read
- Account - Cloudflare Tunnel - Read
- Under "Zone Resources", select "Include - Specific zone" and choose your domain
- Create the token and copy its value
Finding Your Account ID
The Account ID is needed for some Cloudflare Tunnel operations.
- Go to the Cloudflare Dashboard
- Look at the URL when logged in - it will contain your account ID:
https://dash.cloudflare.com/1a2b3c4d5e6f7g8h9i0j/your-domain.com - The string after
/dash.cloudflare.com/is your Account ID (e.g.,1a2b3c4d5e6f7g8h9i0j)
Updating Your .env File
Update your .env file with these values: