From d6282c87bbd812c1dc4ad35ee9a6519471ce2197 Mon Sep 17 00:00:00 2001 From: Satria <90962949+SX-9@users.noreply.github.com> Date: Mon, 14 Oct 2024 19:10:30 +0700 Subject: [PATCH] switch to file --- dnsconfig.js | 11 +++++++---- domains/@.json | 8 ++++++++ 2 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 domains/@.json diff --git a/dnsconfig.js b/dnsconfig.js index 1827dc3..ed4ad90 100644 --- a/dnsconfig.js +++ b/dnsconfig.js @@ -106,11 +106,14 @@ for (var idx in domains) { // ); // } // } + + if ('ALIAS' in domainData.record) { + commits.push( + ALIAS(subdomain, domainData.record.ALIAS + ".", proxyState) + ); + } } -commits.push( - // CF_REDIRECT("*", "https://" + rootDomain + '/unregistered'), - ALIAS("@", registerSite + ".", proxy.on) -); +// commits.push(); D(rootDomain, regNone, providerCf, commits); diff --git a/domains/@.json b/domains/@.json new file mode 100644 index 0000000..34273a1 --- /dev/null +++ b/domains/@.json @@ -0,0 +1,8 @@ +{ + "owner": { + "username": "SX-9" + }, + "record": { + "ALIAS": "website-e7n.pages.dev" + } +} \ No newline at end of file