mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
* CLOUDFLAREAPI: Adds CF_WORKER_ROUTE. - CLOUDFLAREAPI: Initial support for CF_WORKER_ROUTE. - Put CF_WORKER_ROUTE behind a per-domain feature-flag. - Adds Integration Test. - Create Cloudflare workers for tests. - Updates documentation. * Workaround for updateWorkerRoute causing stack overflow. * Sets AccountID. * Updates to latest master (Thanks @tresni!). * Removes $CLOUDFLAREAPI_ACCOUNTNAME. * Add alltrue() filter and -cfworkers flag * Final workers changes * alltrue() should be implemented like other filters. * Update documentation. Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
59 lines
1.2 KiB
JSON
59 lines
1.2 KiB
JSON
{
|
|
"dns_providers": [
|
|
{
|
|
"name": "Cloudflare",
|
|
"type": "CLOUDFLAREAPI"
|
|
}
|
|
],
|
|
"domains": [
|
|
{
|
|
"dnsProviders": {
|
|
"Cloudflare": -1
|
|
},
|
|
"name": "foo.com",
|
|
"records": [
|
|
{
|
|
"name": "test1.foo.com.sub",
|
|
"subdomain": "sub",
|
|
"target": "10.2.3.1",
|
|
"type": "A"
|
|
},
|
|
{
|
|
"name": "test2.foo.com.sub",
|
|
"subdomain": "sub",
|
|
"target": "10.2.3.2",
|
|
"type": "A"
|
|
},
|
|
{
|
|
"name": "test3.foo.com.sub",
|
|
"subdomain": "sub",
|
|
"target": "10.2.3.3",
|
|
"type": "A"
|
|
},
|
|
{
|
|
"name": "@",
|
|
"target": "test1.foo.com,https://goo.com/$1",
|
|
"type": "CF_REDIRECT"
|
|
},
|
|
{
|
|
"name": "@",
|
|
"target": "test2.foo.com,https://goo.com/$1",
|
|
"type": "CF_TEMP_REDIRECT"
|
|
},
|
|
{
|
|
"name": "@",
|
|
"target": "test3.foo.com,test-worker",
|
|
"type": "CF_WORKER_ROUTE"
|
|
}
|
|
],
|
|
"registrar": "Third-Party"
|
|
}
|
|
],
|
|
"registrars": [
|
|
{
|
|
"name": "Third-Party",
|
|
"type": "NONE"
|
|
}
|
|
]
|
|
}
|