Refactor code for improved readability and performance
This commit is contained in:
28
GET_EMAIL_FROM_API.md
Normal file
28
GET_EMAIL_FROM_API.md
Normal file
@@ -0,0 +1,28 @@
|
||||
# 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)
|
||||
|
||||
1. Go to: https://dash.cloudflare.com/profile/api-tokens
|
||||
2. Click **Create Token**
|
||||
3. Use **Edit zone DNS** template OR create custom with:
|
||||
- **Zone** → **DNS** → **Edit**
|
||||
- **Account** → **Cloudflare Tunnel** → **Edit**
|
||||
4. Copy the token
|
||||
5. Add to .env:
|
||||
```
|
||||
CLOUDFLARE_API_TOKEN="your-token-here"
|
||||
```
|
||||
6. 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.
|
||||
Reference in New Issue
Block a user