1.7 KiB
1.7 KiB
Cloudflare Credentials Web Setup
A web-based interface to configure your Cloudflare API credentials.
Quick Start
-
Start the web server:
./scripts/start-cloudflare-setup.sh -
Open in your browser:
-
Fill in the form:
- Enter your Cloudflare email
- Add your Global API Key or API Token
- Optionally add Account ID, Zone ID, Domain, and Tunnel Token
- Click "Save Credentials"
-
Test your connection:
- Click "Test API Connection" to verify credentials work
-
Stop the server:
- Press
Ctrl+Cin the terminal
- Press
Features
- ✅ View current credential status
- ✅ Update credentials via web form
- ✅ Test API connection
- ✅ Secure (only accessible from localhost)
- ✅ Automatically saves to
.envfile
Getting Your Credentials
Global API Key
- Go to: https://dash.cloudflare.com/profile/api-tokens
- Scroll to API Keys section
- Click View next to Global API Key
- Enter your password
- Copy the key
API Token (Recommended)
- Go to: https://dash.cloudflare.com/profile/api-tokens
- Click Create Token
- Use Edit zone DNS template
- Add permission: Account → Cloudflare Tunnel → Edit
- Copy the token
Account ID & Zone ID
- Found in your Cloudflare dashboard
- Or use the web interface to test and it will help you find them
Troubleshooting
Port 5000 already in use?
- The script will show an error
- Kill the process:
lsof -ti:5000 | xargs kill -9 - Or modify the port in
cloudflare-setup-web.py
Can't access from browser?
- Make sure you're accessing from the same machine
- The server only listens on localhost (127.0.0.1) for security