Skip to content

Commit dcefe0f

Browse files
committed
new dns provider
1 parent 9bbfdda commit dcefe0f

File tree

3 files changed

+17
-7
lines changed

3 files changed

+17
-7
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ jobs:
2626
- name: Sync w/ production DNS providers
2727
run: ./bin/sync ${{ inputs.force && '--force' || '' }}
2828
env:
29-
HETZNER_KEY: ${{ secrets.HETZNER_KEY }}
29+
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ jobs:
2424
- name: Do a dry run
2525
run: ./bin/dry-run ${{ inputs.force && '--force' || '' }}
2626
env:
27-
HETZNER_KEY: ${{ secrets.HETZNER_KEY }}
27+
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN_READ_ONLY }}

config/main.yaml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,29 @@ providers:
55
directory: ./
66
enforce_order: True
77
default_ttl: 600
8-
hetzner:
9-
class: octodns_hetzner.HetznerProvider
10-
token: env/HETZNER_KEY
8+
cloudflare:
9+
class: octodns_cloudflare.CloudflareProvider
10+
token: env/CLOUDFLARE_TOKEN
11+
# Production best practices
12+
plan_type: free # Cloudflare plan type
13+
min_ttl: 120 # Cloudflare minimum
14+
# Enhanced reliability settings
15+
retry_count: 5 # More retries for production
16+
retry_period: 600 # 10 minute wait on rate limits
17+
pagerules: false
18+
zones_per_page: 50 # API pagination
19+
records_per_page: 100 # API pagination
20+
1121

1222
zones:
1323
patchworklabs.org.:
1424
sources:
1525
- config
1626
targets:
17-
- hetzner
27+
- cloudflare
1828

1929
hackathon.help.:
2030
sources:
2131
- config
2232
targets:
23-
- hetzner
33+
- cloudflare

0 commit comments

Comments
 (0)