Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/m4tt72/traeflare
Automatically sync Traefik records with Cloudflare DNS
https://github.com/m4tt72/traeflare
automation bun cloudflare dns docker docker-compose reverse-proxy traefik typescript
Last synced: about 15 hours ago
JSON representation
Automatically sync Traefik records with Cloudflare DNS
- Host: GitHub
- URL: https://github.com/m4tt72/traeflare
- Owner: m4tt72
- Created: 2023-12-10T16:34:45.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-13T13:50:46.000Z (about 1 year ago)
- Last Synced: 2025-01-02T12:10:00.853Z (6 days ago)
- Topics: automation, bun, cloudflare, dns, docker, docker-compose, reverse-proxy, traefik, typescript
- Language: TypeScript
- Homepage:
- Size: 32.2 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Traefik Cloudflare DNS Updater
This is a simple script to update Cloudflare DNS records with Traefik's existing records. Making it automatic to update your DNS records when you add a new service to Traefik.
## Usage
### Docker Compose
```yaml
version: "3"services:
...
traeflare:
image: ghcr.io/m4tt72/traeflare:main
container_name: traeflare
env_file: .env
restart: unless-stopped
depends_on:
- traefik
...
```### Environment Variables
| Variable | Description | Default |
| --- | --- | --- |
| `TRAEFIK_API_URL` | Traefik API URL | `http://traefik:8080` |
| `CF_API_URL` | Cloudflare API URL | `https://api.cloudflare.com/client/v4` |
| `CF_ZONE_ID` | Cloudflare Zone ID | ` ` |
| `CF_API_EMAIL` | Cloudflare API Email | ` ` |
| `CF_API_KEY` | Cloudflare API Key | ` ` |
| `CF_DNS_API_TOKEN` | Cloudflare DNS API Token | ` ` |
| `DOMAIN_NAME` | Domain Name | ` ` |
| `RECORD_TYPE` | Cloudflare Record Type | `A` |
| `PROXIED` | Cloudflare Proxied | `true` |
| `PRUNE_RECORDS` | Prune Records | `true` |