From bf7ebc069b07cb6d98a40714746f9d7b22f45802 Mon Sep 17 00:00:00 2001 From: William Harrison <87287585+wdhdev@users.noreply.github.com> Date: Wed, 23 Apr 2025 21:07:52 +0800 Subject: [PATCH] move data, docs to direct zone file --- dnsconfig.js | 4 ++++ domains/data.json | 10 ---------- domains/docs.json | 12 ------------ util/raw-api.js | 12 ++++++------ util/reserved.json | 2 ++ 5 files changed, 12 insertions(+), 28 deletions(-) delete mode 100644 domains/data.json delete mode 100644 domains/docs.json diff --git a/dnsconfig.js b/dnsconfig.js index 915cb24f7..39c5348e7 100644 --- a/dnsconfig.js +++ b/dnsconfig.js @@ -143,6 +143,8 @@ for (var i = 0; i < reserved.length; i++) { if ( subdomainName !== "autoconfig" && subdomainName !== "autodiscover" && + subdomainName !== "data" && + subdomainName !== "docs" && subdomainName !== "ns1" && subdomainName !== "ns2" && subdomainName !== "ns3" && @@ -172,6 +174,8 @@ var ignored = [ IGNORE("_psl", "TXT"), IGNORE("autoconfig", "CNAME"), IGNORE("autodiscover", "CNAME"), + IGNORE("data", "CNAME"), + IGNORE("docs", "CNAME"), IGNORE("ns[1-4]", "A,AAAA"), IGNORE("raw", "CNAME"), IGNORE("www", "*") diff --git a/domains/data.json b/domains/data.json deleted file mode 100644 index 63110c007..000000000 --- a/domains/data.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "owner": { - "username": "is-a-dev", - "email": "admin@is-a.dev" - }, - "records": { - "CNAME": "is-a-dev.github.io" - }, - "proxied": true -} diff --git a/domains/docs.json b/domains/docs.json deleted file mode 100644 index d83c19713..000000000 --- a/domains/docs.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "description": "Documentation website for is-a.dev", - "repo": "https://github.com/is-a-dev/docs", - "owner": { - "username": "is-a-dev", - "email": "admin@is-a.dev" - }, - "records": { - "CNAME": "is-a-dev-docs.pages.dev" - }, - "proxied": true -} diff --git a/util/raw-api.js b/util/raw-api.js index fca35d9cc..92ec27992 100644 --- a/util/raw-api.js +++ b/util/raw-api.js @@ -22,18 +22,18 @@ for (const subdomain of reserved) { reserved: true }; + const reservedRecords = { + URL: "https://is-a.dev/reserved" + } + v1.push({ ...commonData, - record: { - "URL": "https://is-a.dev/reserved" - } + record: reservedRecords }); v2.push({ ...commonData, - records: { - "URL": "https://is-a.dev/reserved" - } + records: reservedRecords }); } diff --git a/util/reserved.json b/util/reserved.json index e30569b39..d43d55922 100644 --- a/util/reserved.json +++ b/util/reserved.json @@ -21,10 +21,12 @@ "com", "dash", "dashboard", + "data", "dev", "discord", "dns", "doc", + "docs", "documentation", "domain", "email",