diff --git a/dnsconfig.js b/dnsconfig.js index 833d3d6a58..b9453671ca 100644 --- a/dnsconfig.js +++ b/dnsconfig.js @@ -111,7 +111,7 @@ for (var subdomain in domains) { subdomainName, tlsaRecord.usage, tlsaRecord.selector, - tlsaRecord.matchingType, + tlsaRecord.matching_type, tlsaRecord.certificate ) ); @@ -136,6 +136,10 @@ for (var subdomain in domains) { // Manage service records if (data.services) { + if (data.services.bluesky) { + records.push(TXT("_atproto." + subdomainName, "\"" + data.services.bluesky + "\"")); + } + if (data.services.discord) { if (Array.isArray(data.services.discord)) { for (var txt in data.services.discord) { @@ -146,20 +150,6 @@ for (var subdomain in domains) { } } - if (data.services.vercel) { - if (Array.isArray(data.services.vercel)) { - for (var txt in data.services.vercel) { - records.push(TXT("_vercel." + subdomainName, "\"" + data.services.vercel[txt] + "\"")); - } - } else { - records.push(TXT("_vercel." + subdomainName, "\"" + data.services.vercel + "\"")); - } - } - - if (data.services.bluesky) { - records.push(TXT("_atproto." + subdomainName, "\"" + data.services.bluesky + "\"")); - } - if (data.services.gitlab) { if (Array.isArray(data.services.gitlab)) { for (var txt in data.services.gitlab) { @@ -169,6 +159,16 @@ for (var subdomain in domains) { records.push(TXT("_gitlab-pages-verification-code." + subdomainName, "\"" + data.services.gitlab + "\"")); } } + + if (data.services.vercel) { + if (Array.isArray(data.services.vercel)) { + for (var txt in data.services.vercel) { + records.push(TXT("_vercel." + subdomainName, "\"" + data.services.vercel[txt] + "\"")); + } + } else { + records.push(TXT("_vercel." + subdomainName, "\"" + data.services.vercel + "\"")); + } + } } } diff --git a/domains/_github-pages-challenge-roxithereal.roxi.json b/domains/_github-pages-challenge-roxithereal.roxi.json new file mode 100644 index 0000000000..5c54ca975c --- /dev/null +++ b/domains/_github-pages-challenge-roxithereal.roxi.json @@ -0,0 +1,9 @@ +{ + "owner": { + "username": "roxiTheReal", + "email": "aetheron.inc@proton.me" + }, + "records": { + "TXT": "b4a63d8475ddf68f5f1a907cb04fff" + } +} diff --git a/domains/_sharp._tcp.based.json b/domains/_sharp._tcp.based.json new file mode 100644 index 0000000000..3038a3f6e6 --- /dev/null +++ b/domains/_sharp._tcp.based.json @@ -0,0 +1,18 @@ +{ + "owner": { + "username": "dragsbruh", + "email": "dragsbruh@protonmail.com", + "discord": "781445370177126401", + "bluesky": "based.nya.pub" + }, + "records": { + "SRV": [ + { + "priority": 10, + "weight": 0, + "port": 1337, + "target": "sharp.based.is-a.dev" + } + ] + } +} diff --git a/domains/asutosh.json b/domains/asutosh.json new file mode 100644 index 0000000000..a6570d0b0a --- /dev/null +++ b/domains/asutosh.json @@ -0,0 +1,12 @@ +{ + "owner": { + "username": "iAsutoshS", + "email": "yashasu40@gmail.com" + }, + "records": { + "CNAME": "iasutosh.vercel.app" + }, + "services": { + "vercel": "vc-domain-verify=asutosh.is-a.dev,3a54da32d6ba22f0a340" + } +} diff --git a/domains/badraan.json b/domains/badraan.json new file mode 100644 index 0000000000..fab163b7ba --- /dev/null +++ b/domains/badraan.json @@ -0,0 +1,13 @@ +{ + "owner": { + "username": "mobadran", + "email": "badraanmo@gmail.com", + "discord": "gm.mo" + }, + "records": { + "CNAME": "cname.vercel-dns.com" + }, + "services": { + "vercel": "vc-domain-verify=badraan.is-a.dev,32cb3bde0c1514742541" + } +} diff --git a/domains/cosintan.json b/domains/cosintan.json new file mode 100644 index 0000000000..a7a434376d --- /dev/null +++ b/domains/cosintan.json @@ -0,0 +1,13 @@ +{ + "owner": { + "username": "cosintan-tg", + "email": "cosintan.tg@gmail.com" + }, + "records": { + "CNAME": "cname.vercel-dns.com" + }, + "services": { + "vercel": "vc-domain-verify=cosintan.is-a.dev,b33d7124eaba6f7dca28", + "discord": "dh=cc6050f09d0f1563f4dd1b168879b9b03ad5e57f" + } +} diff --git a/domains/fleetha.json b/domains/fleetha.json index ad64ec6a8c..ae278c365c 100644 --- a/domains/fleetha.json +++ b/domains/fleetha.json @@ -4,6 +4,6 @@ "email": "fleetha.dev@gmail.com" }, "records": { - "URL": "https://fleetha.pythonanywhere.com" + "CNAME": "fleethaofficial.pages.dev" } } diff --git a/domains/jerrywu.json b/domains/jerrywu.json new file mode 100644 index 0000000000..9230b875be --- /dev/null +++ b/domains/jerrywu.json @@ -0,0 +1,12 @@ +{ + "owner": { + "username": "JerryWu0430", + "email": "woohaoran@gmail.com" + }, + "records": { + "CNAME": "cname.vercel-dns.com" + }, + "services": { + "vercel": "vc-domain-verify=jerrywu.is-a.dev,02b8b5343accf141471f" + } +} diff --git a/domains/pen.json b/domains/pen.json new file mode 100644 index 0000000000..04b2368495 --- /dev/null +++ b/domains/pen.json @@ -0,0 +1,9 @@ +{ + "owner": { + "username": "VulcanoSoftware", + "discord": "814891541205876767" + }, + "records": { + "CNAME": "vulcanodirect.pages.dev" + } +} diff --git a/domains/roxi.json b/domains/roxi.json new file mode 100644 index 0000000000..8b1d0d3d5d --- /dev/null +++ b/domains/roxi.json @@ -0,0 +1,9 @@ +{ + "owner": { + "username": "roxiTheReal", + "email": "aetheron.inc@proton.me" + }, + "records": { + "CNAME": "roxiTheReal.github.io" + } +} diff --git a/domains/semiqolonn.json b/domains/semiqolonn.json index 4de53e3a3c..8fba8d0a31 100644 --- a/domains/semiqolonn.json +++ b/domains/semiqolonn.json @@ -7,6 +7,7 @@ "CNAME": "semiqolonn.github.io" }, "services": { - "discord": "dh=ff7ac5f50b2671e388f1e378b4c46f2c7a867223" + "discord": "dh=ff7ac5f50b2671e388f1e378b4c46f2c7a867223", + "bluesky": "did=did:plc:7by3itciq5ufovihg4s5jt5i" } } diff --git a/domains/sharp.based.json b/domains/sharp.based.json new file mode 100644 index 0000000000..121905f292 --- /dev/null +++ b/domains/sharp.based.json @@ -0,0 +1,17 @@ +{ + "owner": { + "username": "dragsbruh", + "email": "dragsbruh@protonmail.com", + "discord": "781445370177126401", + "bluesky": "based.nya.pub" + }, + "description": "a domain for a SHARP-based search engine. using a friend's search vps to tunnel to my home.", + + "records": { + "A": ["94.130.137.16"] + }, + + "services": { + "discord": "dh=257c94db0d4d6fa3c3d077970008aa82cb6b7cb6" + } +} diff --git a/domains/shovonraul.json b/domains/shovonraul.json new file mode 100644 index 0000000000..e296e11a03 --- /dev/null +++ b/domains/shovonraul.json @@ -0,0 +1,9 @@ +{ + "owner": { + "username": "ShovonRaul991", + "email": "shovon.kekar@gmail.com" + }, + "records": { + "A": ["75.2.60.5"] + } +} diff --git a/domains/tg.json b/domains/tg.json new file mode 100644 index 0000000000..2b0dbf446d --- /dev/null +++ b/domains/tg.json @@ -0,0 +1,11 @@ +{ + "owner": { + "username": "tggamesyt", + "email": "tothgergoci2@gmail.com" + }, + "records": { + "CNAME": "tggamesyt.github.io", + "TXT": "google-site-verification=MqP9uuv-eJnnCBGFcD2xK5ux6S1YZpLm2aySQQNiAWI" + }, + "proxied": true +} \ No newline at end of file diff --git a/domains/vaibhavingle.json b/domains/vaibhavingle.json new file mode 100644 index 0000000000..05a5759f17 --- /dev/null +++ b/domains/vaibhavingle.json @@ -0,0 +1,15 @@ +{ + "description": "Just a personal portfolio wesite ", + "repo": "https://github.com/vaibhavingle2007/portfolio-web.git", + "owner": { + "username": "vaibhavingle2007", + "email": "vaibhavingleg@gmail.com" + }, + "records": { + "CNAME": "portfolio-web-vaibhavingle2007s-projects.vercel.app" + }, + "proxied": true, + "services": { + "vercel": "vc-domain-verify=vaibhavingle.is-a.dev,393faf165de284bc9236" + } +} diff --git a/tests/records.test.js b/tests/records.test.js index 773de6bb61..38a0108878 100644 --- a/tests/records.test.js +++ b/tests/records.test.js @@ -212,8 +212,8 @@ function validateRecordValues(t, data, file) { `${file}: Invalid selector for ${key} at index ${idx}` ); t.true( - Number.isInteger(record.matchingType) && record.matchingType >= 0 && record.matchingType <= 255, - `${file}: Invalid matchingType for ${key} at index ${idx}` + Number.isInteger(record.matching_type) && record.matching_type >= 0 && record.matching_type <= 255, + `${file}: Invalid matching_type for ${key} at index ${idx}` ); t.true( isValidHexadecimal(record.certificate), diff --git a/util/raw-api.js b/util/raw-api.js index a4cc181151..f0ba57ef64 100644 --- a/util/raw-api.js +++ b/util/raw-api.js @@ -160,6 +160,9 @@ fs.readdir(directoryPath, function (err, files) { processedCount++; if (processedCount === files.length) { + v1.sort((a, b) => a.domain.localeCompare(b.subdomain)); + v2.sort((a, b) => a.domain.localeCompare(b.subdomain)); + fs.writeFile("raw-api/index.json", JSON.stringify(v1), (err) => { if (err) throw err; });