Configuration
LazyFlare requires a Cloudflare API Token to communicate with your account.
1. Generating an API Token
- Go to your Cloudflare Dashboard Profile.
- Click Create Token -> Create Custom Token.
- Grant Edit permissions for
Zone DNS,Cache Purge,Workers Scripts, andWorkers KV Storage.
2. Setting the Token
LazyFlare supports two methods:
Method A: Configuration File (Recommended)
Run the following commands in your terminal:
bash
mkdir -p ~/.config/lazyflare
echo "CLOUDFLARE_API_TOKEN=your_super_secret_token_here" > ~/.config/lazyflare/configMethod B: Environment Variable
bash
export CLOUDFLARE_API_TOKEN="your_super_secret_token_here"