From ba4d6b49a1f4210f737a27fb62a2825affee70da Mon Sep 17 00:00:00 2001 From: Eldar Pashazade Date: Wed, 28 May 2025 10:36:30 +0400 Subject: [PATCH 1/7] feat(register): allow sub-subdomain redirects --- domains/www.eldarlrd.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/domains/www.eldarlrd.json b/domains/www.eldarlrd.json index a4a31b437b..a64a191626 100644 --- a/domains/www.eldarlrd.json +++ b/domains/www.eldarlrd.json @@ -5,5 +5,8 @@ }, "records": { "URL": "https://eldarlrd.is-a.dev" + }, + "redirect_config": { + "redirect_paths": true } } From 880344d1354ee1c4a83485ab1e390e5a65f61e08 Mon Sep 17 00:00:00 2001 From: "Tarn." Date: Wed, 28 May 2025 22:28:56 +0500 Subject: [PATCH 2/7] tarn.json --- domains/tarn.json | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 domains/tarn.json diff --git a/domains/tarn.json b/domains/tarn.json new file mode 100644 index 0000000000..67090cce1b --- /dev/null +++ b/domains/tarn.json @@ -0,0 +1,10 @@ +{ + "description": "Tarn's Portfolio", + "owner": { + "username": "tarniscool", + "email": "vfmblockman@gmail.com" + }, + "record": { + "CNAME": "https://tarniscool.netlify.app/" + } +} From 39c38537525b8ae1245bfc53635c010914fd801c Mon Sep 17 00:00:00 2001 From: Joe Date: Thu, 29 May 2025 00:40:58 +0300 Subject: [PATCH 3/7] Delete domains/www.wizzybot.joe50097.json --- domains/www.wizzybot.joe50097.json | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 domains/www.wizzybot.joe50097.json diff --git a/domains/www.wizzybot.joe50097.json b/domains/www.wizzybot.joe50097.json deleted file mode 100644 index 3fc2793d78..0000000000 --- a/domains/www.wizzybot.joe50097.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "owner": { - "username": "Joe50097", - "email": "zcell9500@gmail.com" - }, - "records": { - "CNAME": "wizzybot.netlify.app" - } -} From 19c2cf803fa839988ec54d16d84e8e67338a61bb Mon Sep 17 00:00:00 2001 From: William Harrison <87287585+wdhdev@users.noreply.github.com> Date: Thu, 29 May 2025 17:21:45 +0800 Subject: [PATCH 4/7] add dns records for nested www subdomains --- dnsconfig.js | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/dnsconfig.js b/dnsconfig.js index 833d3d6a58..faf5db4900 100644 --- a/dnsconfig.js +++ b/dnsconfig.js @@ -172,6 +172,32 @@ for (var subdomain in domains) { } } +var existingSubdomains = new Set(); +var eligibleDomains = []; + +for (var i = 0; i < domains.length; i++) { + var subdomainName = domains[i].name; + var data = domains[i].data; + + existingSubdomains.add(subdomainName); + + if ( + !subdomainName.startsWith("www.") && + (data.records.A || data.records.AAAA || data.records.CNAME || data.records.URL) + ) { + eligibleDomains.push(subdomainName); + } +} + +for (var i = 0; i < eligibleDomains.length; i++) { + var sub = eligibleDomains[i]; + var wwwSub = "www." + sub; + + if (!existingSubdomains.has(wwwSub)) { + records.push(A(wwwSub, IP("192.0.2.1"), CF_PROXY_ON)); + } +} + var reserved = require("./util/reserved.json"); // Handle reserved domains From 3fcf507d552eed0b5c570588c701f34b22a70be7 Mon Sep 17 00:00:00 2001 From: William Harrison <87287585+wdhdev@users.noreply.github.com> Date: Thu, 29 May 2025 17:24:32 +0800 Subject: [PATCH 5/7] Update dnsconfig.js --- dnsconfig.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dnsconfig.js b/dnsconfig.js index faf5db4900..04c4b866a9 100644 --- a/dnsconfig.js +++ b/dnsconfig.js @@ -172,17 +172,17 @@ for (var subdomain in domains) { } } -var existingSubdomains = new Set(); +var existingSubdomains = {}; var eligibleDomains = []; for (var i = 0; i < domains.length; i++) { var subdomainName = domains[i].name; var data = domains[i].data; - existingSubdomains.add(subdomainName); + existingSubdomains[subdomainName] = true; if ( - !subdomainName.startsWith("www.") && + subdomainName.substring(0, 4) !== "www." && (data.records.A || data.records.AAAA || data.records.CNAME || data.records.URL) ) { eligibleDomains.push(subdomainName); @@ -193,7 +193,7 @@ for (var i = 0; i < eligibleDomains.length; i++) { var sub = eligibleDomains[i]; var wwwSub = "www." + sub; - if (!existingSubdomains.has(wwwSub)) { + if (!existingSubdomains[wwwSub]) { records.push(A(wwwSub, IP("192.0.2.1"), CF_PROXY_ON)); } } From e28344925aa6163951aba3fbeccc11dd270dafc0 Mon Sep 17 00:00:00 2001 From: William Harrison <87287585+wdhdev@users.noreply.github.com> Date: Thu, 29 May 2025 17:36:06 +0800 Subject: [PATCH 6/7] Revert "add dns records for nested www subdomains" --- dnsconfig.js | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/dnsconfig.js b/dnsconfig.js index 04c4b866a9..833d3d6a58 100644 --- a/dnsconfig.js +++ b/dnsconfig.js @@ -172,32 +172,6 @@ for (var subdomain in domains) { } } -var existingSubdomains = {}; -var eligibleDomains = []; - -for (var i = 0; i < domains.length; i++) { - var subdomainName = domains[i].name; - var data = domains[i].data; - - existingSubdomains[subdomainName] = true; - - if ( - subdomainName.substring(0, 4) !== "www." && - (data.records.A || data.records.AAAA || data.records.CNAME || data.records.URL) - ) { - eligibleDomains.push(subdomainName); - } -} - -for (var i = 0; i < eligibleDomains.length; i++) { - var sub = eligibleDomains[i]; - var wwwSub = "www." + sub; - - if (!existingSubdomains[wwwSub]) { - records.push(A(wwwSub, IP("192.0.2.1"), CF_PROXY_ON)); - } -} - var reserved = require("./util/reserved.json"); // Handle reserved domains From b874ec8c4c4d38a113d544eef95c3d4459667bb4 Mon Sep 17 00:00:00 2001 From: William Harrison <87287585+wdhdev@users.noreply.github.com> Date: Thu, 29 May 2025 18:31:47 +0800 Subject: [PATCH 7/7] fix --- domains/tarn.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/domains/tarn.json b/domains/tarn.json index 67090cce1b..18d1c1a64a 100644 --- a/domains/tarn.json +++ b/domains/tarn.json @@ -4,7 +4,7 @@ "username": "tarniscool", "email": "vfmblockman@gmail.com" }, - "record": { - "CNAME": "https://tarniscool.netlify.app/" + "records": { + "CNAME": "tarniscool.netlify.app" } }