Auto-Updates Cloudflare DNS records using ipinfo.
https://hub.docker.com/r/lousando/cloudflare-chimp
- TypeScript 94.6%
- Dockerfile 3.6%
- Makefile 1.8%
|
|
||
|---|---|---|
| .env.example | ||
| .gitignore | ||
| config.ts | ||
| deno.json | ||
| deno.lock | ||
| Dockerfile | ||
| Makefile | ||
| mod.ts | ||
| README.md | ||
| types.ts | ||
Cloudflare Chimp 🐒
Auto-Updates Cloudflare DNS records using ipinfo.
ipinfo & Cloudflare Setup ⚙️
- Register for a free plan over at ipinfo. They're pretty generous and offer 50k free requests a month. Creating a Cloudflare API token
- Create a CloudFlare API token
for your DNS Zone.
- Click
Create Custom Token - Then grant the following
Permissions: 2. Zone | Zone Settings | Read 3. Zone | Zone | Read 4. Zone | DNS | Edit - Finally, set the following
Zone Resources7. Include | All Zones
- Click
Docker Setup 🐳
Create a volume mapping at /config in the container. In the volume, create a
file called config.yaml. Below is a sample configuration file:
# Sample Config of /config/config.yaml
ipInfoApiKey: "your-ipinfo-api-key"
cloudflareApiKey: "your-cloudflare-api-key"
updateIntervalInMinutes: 5
records:
- domain: "example.com"
subDomain: "photos"
useCloudflareCDN: true
- domain: "example.com"
subDomain: "db"
useCloudflareCDN: false
Caveats
- Only be 1 ipinfo call made per update interval; this is to keep your request count low.
- ALL your records will update at the same interval, there is currently no feature to set custom update intervals per-record.
- Only
Arecords are supported.