Skip to content

Commit

Permalink
feat: add support for cloudflare dns provider
Browse files Browse the repository at this point in the history
  • Loading branch information
JoyceBabu committed May 4, 2021
1 parent df2ff12 commit 8d60f25
Show file tree
Hide file tree
Showing 9 changed files with 624 additions and 36 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ jspm_packages
# Serverless directories
.serverless
events
config.json
config.json
dist/
.webpackCache
19 changes: 18 additions & 1 deletion config.json.sample
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,31 @@
}
}
},
"dns_providers": {
"cloudflare-1": {
"dns_provider": "cloudflare",
"token": "CLOUDFLARE AUTH TOKEN"
},
"cloudflare-2": {
"dns_provider": "cloudflare",
"token": "CLOUDFLARE AUTH TOKEN"
}
},
"update_endpoint": "ddns-update.example.com",
"hosts": {
"ddns1.example.com": {
"dns_provider_id": "cloudflare-1",
"zoneId": "<optional>",
"ttl": 60,
"type": "A"
},
"ddns1.example.com": {
"ddns1.example.org": {
"dns_provider_id": "cloudflare-2",
"zoneId": "<optional>",
"ttl": 60,
"type": "A"
},
"ddns1.example.net": {
"ttl": 60
}
}
Expand Down
Loading

0 comments on commit 8d60f25

Please sign in to comment.