768 B
768 B
Get Cloudflare Email for API Key
Since you're using CLOUDFLARE_API_KEY, you need to add your Cloudflare account email.
Option 1: Add Email to .env
Add this line to your .env file:
CLOUDFLARE_EMAIL="your-email@example.com"
Option 2: Create API Token (Recommended)
- Go to: https://dash.cloudflare.com/profile/api-tokens
- Click Create Token
- Use Edit zone DNS template OR create custom with:
- Zone → DNS → Edit
- Account → Cloudflare Tunnel → Edit
- Copy the token
- Add to .env:
CLOUDFLARE_API_TOKEN="your-token-here" - Remove or comment out CLOUDFLARE_API_KEY
Option 3: Get Email from Cloudflare Dashboard
Your email is the one you use to log into Cloudflare Dashboard.