From 068ff206501054b608c76d40e037d5672024a7e2 Mon Sep 17 00:00:00 2001 From: William Harrison Date: Mon, 25 Dec 2023 07:21:34 +0800 Subject: [PATCH 01/24] feat(root): mail records --- domains/@.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/domains/@.json b/domains/@.json index 56f1851e8..6fdb9372b 100644 --- a/domains/@.json +++ b/domains/@.json @@ -6,6 +6,8 @@ "email": "phenax5@gmail.com" }, "record": { - "URL": "http://www.is-a.dev" + "URL": "http://www.is-a.dev", + "MX": ["mail.is-a.dev"], + "TXT": ["v=spf1 ip4:51.161.54.164 include:mail.is-a.dev ~all"] } } From 5c70e47c2d6e8f7882761d14bca45244e0f473d9 Mon Sep 17 00:00:00 2001 From: jirafey <97115044+jirafey@users.noreply.github.com> Date: Fri, 5 Jan 2024 16:17:14 +0200 Subject: [PATCH 02/24] Create _discord.jirafey.is-a.dev.json --- domains/_discord.jirafey.is-a.dev.json | 1 + 1 file changed, 1 insertion(+) create mode 100644 domains/_discord.jirafey.is-a.dev.json diff --git a/domains/_discord.jirafey.is-a.dev.json b/domains/_discord.jirafey.is-a.dev.json new file mode 100644 index 000000000..2f26b0059 --- /dev/null +++ b/domains/_discord.jirafey.is-a.dev.json @@ -0,0 +1 @@ +dh=3c80d94ed181b223255b5fbf35f8fda6a402058f From 1f5305d891d2a2afa95a1e8493072a1f9f80ee64 Mon Sep 17 00:00:00 2001 From: jirafey <97115044+jirafey@users.noreply.github.com> Date: Fri, 5 Jan 2024 16:18:39 +0200 Subject: [PATCH 03/24] Update _discord.jirafey.is-a.dev.json --- domains/_discord.jirafey.is-a.dev.json | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/domains/_discord.jirafey.is-a.dev.json b/domains/_discord.jirafey.is-a.dev.json index 2f26b0059..9a7ab2cd2 100644 --- a/domains/_discord.jirafey.is-a.dev.json +++ b/domains/_discord.jirafey.is-a.dev.json @@ -1 +1,10 @@ -dh=3c80d94ed181b223255b5fbf35f8fda6a402058f +{ + "owner": { + "username": "jirafey", + "email": "jirafey@tuta.io", + "discord": "853672321394016256" + } + "record": { + "TXT": "dh=3c80d94ed181b223255b5fbf35f8fda6a402058f" + } +} From 1242e70f71eb5a62a8cc743a596e9778abb898bc Mon Sep 17 00:00:00 2001 From: jirafey <97115044+jirafey@users.noreply.github.com> Date: Fri, 5 Jan 2024 16:19:15 +0200 Subject: [PATCH 04/24] Update _discord.jirafey.is-a.dev.json --- domains/_discord.jirafey.is-a.dev.json | 1 - 1 file changed, 1 deletion(-) diff --git a/domains/_discord.jirafey.is-a.dev.json b/domains/_discord.jirafey.is-a.dev.json index 9a7ab2cd2..8a5d67e15 100644 --- a/domains/_discord.jirafey.is-a.dev.json +++ b/domains/_discord.jirafey.is-a.dev.json @@ -2,7 +2,6 @@ "owner": { "username": "jirafey", "email": "jirafey@tuta.io", - "discord": "853672321394016256" } "record": { "TXT": "dh=3c80d94ed181b223255b5fbf35f8fda6a402058f" From 18a6eafd8d56f8e1a27fa6cfee2f86519587055d Mon Sep 17 00:00:00 2001 From: jirafey Date: Fri, 5 Jan 2024 16:50:40 +0200 Subject: [PATCH 05/24] feat(domain): _discord.jirafey.is-a.dev --- domains/_discord.jirafey.json | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 domains/_discord.jirafey.json diff --git a/domains/_discord.jirafey.json b/domains/_discord.jirafey.json new file mode 100644 index 000000000..363a429d5 --- /dev/null +++ b/domains/_discord.jirafey.json @@ -0,0 +1,9 @@ +{ + "owner": { + "username": "jirafey", + "email": "jirafey@tuta.io" + }, + "record": { + "TXT": "dh=3c80d94ed181b223255b5fbf35f8fda6a402058f" + } +} From 07d5c2a3ece79e802720e22e99dcaf3b03f0df8c Mon Sep 17 00:00:00 2001 From: jirafey <97115044+jirafey@users.noreply.github.com> Date: Fri, 5 Jan 2024 16:57:04 +0200 Subject: [PATCH 06/24] Delete domains/_discord.jirafey.json --- domains/_discord.jirafey.json | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 domains/_discord.jirafey.json diff --git a/domains/_discord.jirafey.json b/domains/_discord.jirafey.json deleted file mode 100644 index 363a429d5..000000000 --- a/domains/_discord.jirafey.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "owner": { - "username": "jirafey", - "email": "jirafey@tuta.io" - }, - "record": { - "TXT": "dh=3c80d94ed181b223255b5fbf35f8fda6a402058f" - } -} From 6582453e8ac0b311c6059a2d3f7d2152526ee7eb Mon Sep 17 00:00:00 2001 From: jirafey Date: Fri, 5 Jan 2024 16:57:55 +0200 Subject: [PATCH 07/24] feat(domain): _discord.jirafey.is-a.dev --- domains/_discord.jirafey.json | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 domains/_discord.jirafey.json diff --git a/domains/_discord.jirafey.json b/domains/_discord.jirafey.json new file mode 100644 index 000000000..363a429d5 --- /dev/null +++ b/domains/_discord.jirafey.json @@ -0,0 +1,9 @@ +{ + "owner": { + "username": "jirafey", + "email": "jirafey@tuta.io" + }, + "record": { + "TXT": "dh=3c80d94ed181b223255b5fbf35f8fda6a402058f" + } +} From 9647b5999dcce21f50dd93bfebc038c37783141f Mon Sep 17 00:00:00 2001 From: alijafari-gd Date: Sun, 7 Jan 2024 10:48:46 +0330 Subject: [PATCH 08/24] feat(domain): alijafari.is-a.dev --- domains/alijafari.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 domains/alijafari.json diff --git a/domains/alijafari.json b/domains/alijafari.json new file mode 100644 index 000000000..e638a8338 --- /dev/null +++ b/domains/alijafari.json @@ -0,0 +1,14 @@ +{ + "owner": { + "username": "alijafari-gd", + "email": "ali.jafari.sn@gmail.com" + }, + "record": { + "A": [ + "217.174.245.249", + "51.161.54.161" + ], + "MX": ["mail.is-a.dev"], + "TXT": "v=spf1 mx a:mail.is-a.dev ~all" + } +} \ No newline at end of file From 5a5812ae43590a5aabf79639dbbaee8725f6ffa6 Mon Sep 17 00:00:00 2001 From: alijafari-gd Date: Sun, 7 Jan 2024 10:52:11 +0330 Subject: [PATCH 09/24] feat(domain): a-j.is-a.dev --- domains/a-j.json | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 domains/a-j.json diff --git a/domains/a-j.json b/domains/a-j.json new file mode 100644 index 000000000..17469e2f2 --- /dev/null +++ b/domains/a-j.json @@ -0,0 +1,9 @@ +{ + "owner": { + "username": "alijafari-gd", + "email": "ali.jafari.sn@gmail.com" + }, + "record": { + "URL": "https://alijafari.is-a.dev" + } +} From 07015bb1eb8a2354d07ebe496fb683d2c70cbb69 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sun, 7 Jan 2024 15:39:24 +0530 Subject: [PATCH 10/24] chore: certbot script to bun --- Dockerfile | 9 +++++---- domains/stefdp.json | 2 +- scripts/certbot.sh | 8 ++++---- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index d5a4de6b7..990a6e0b2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,17 +5,18 @@ RUN ln -fs /usr/share/zoneinfo/America/New_York /etc/localtime RUN apt-get -y update RUN apt-get install -y nodejs npm curl wget dnsutils certbot --fix-missing +RUN apt-get install -y unzip -RUN npm i -g n yarn && n 15.11 +RUN bash -c "curl -fsSL https://bun.sh/install | bash -s 'bun-v1.0.15'" -RUN node -v +RUN ~/.bun/bin/bun -v WORKDIR /opt/app -COPY yarn.lock . +COPY bun.lockb . COPY package.json . -RUN yarn install +RUN ~/.bun/bin/bun install CMD ["sh", "-c", "cp -r node_modules code; cd code; tail -f /dev/null"] diff --git a/domains/stefdp.json b/domains/stefdp.json index 56c2fc2fd..2882eface 100644 --- a/domains/stefdp.json +++ b/domains/stefdp.json @@ -12,7 +12,7 @@ "mail.is-a.dev" ], "TXT": [ - " v=spf1 mx a:mail.is-a.dev ip4:217.174.245.249 ~all" + "v=spf1 mx a:mail.is-a.dev ip4:217.174.245.249 ~all" ] } } diff --git a/scripts/certbot.sh b/scripts/certbot.sh index 2ab0447ae..ee84aa6d7 100755 --- a/scripts/certbot.sh +++ b/scripts/certbot.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -export ENV=production +export NODE_ENV=production DRY_RUN=0 if_dry_run() { [[ $DRY_RUN == 1 ]] && echo "$1" || echo "$2"; } @@ -32,7 +32,7 @@ update_record() { local name="$3"; local address="$4"; local ttl=${5:-"1"}; - echo " + bun -e " const { domainService } = require('./utils/domain-service'); const { ENV, DOMAIN_DOMAIN } = require('./utils/constants'); const method = '$method'; @@ -57,7 +57,7 @@ update_record() { } main().catch(console.error); - " | node - + " } update_acme_txt_record() { @@ -68,6 +68,7 @@ reset_acme() { sleep 1; update_record remove TXT '_acme-challenge' ''; update_record remove TXT '_acme-challenge' ''; + # update_record add CNAME 'www' "is-a-dev.github.io"; } get_acme() { dig +noall +answer _acme-challenge.is-a.dev TXT | awk '{print $5}'; } @@ -84,7 +85,6 @@ esac ### STEPS ### # Run ./scripts/certbot.sh cert -# Run ./scripts/certbot.sh acme_txt "" # cp -r /tmp/is-a-dev-whatever /opt/app/code/is-a-dev-cert # Upload cert.pem and privkey.pem (from config/live/is-a.dev/) contents to SSL > Manage SSL Sites # Run ./scripts/certbot.sh reset From 28a85ffac387337ba38a14dbea7275e75a7ae596 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sun, 7 Jan 2024 15:41:04 +0530 Subject: [PATCH 11/24] fix: fixes issue with mail record being reserved + sort record order --- tests/domain-service.test.js | 12 +++++++--- utils/domain-service.js | 43 +++++++++++++++++++++++++----------- utils/lib/cpanel.js | 2 +- 3 files changed, 40 insertions(+), 17 deletions(-) diff --git a/tests/domain-service.test.js b/tests/domain-service.test.js index 79ea1d1e2..077aa4ea2 100644 --- a/tests/domain-service.test.js +++ b/tests/domain-service.test.js @@ -263,8 +263,8 @@ describe('Domain service', () => { ]); expect(removeZone).toHaveBeenCalledTimes(2); expect(getRecordCalls(removeZone)).toEqual([ - { line: 2 }, { line: 3 }, + { line: 2 }, ]); }); @@ -277,6 +277,9 @@ describe('Domain service', () => { { line: 5, name: 'c', type: 'MX', address: 'mx1.hello.com', priority: 20 }, { line: 6, name: 'c', type: 'MX', address: 'mx2.hello.com', priority: 21 }, { line: 7, name: 'b', type: 'MX', address: 'foo.bar', priority: 20 }, + { line: 101, name: 'x', type: 'A', address: '1' }, + { line: 99, name: 'y', type: 'A', address: '2' }, + { line: 100, name: 'z', type: 'A', address: '3' }, ]; const redirections = [ { domain: `b.${DOMAIN_DOMAIN}`, destination: 'https://foobar.com' }, @@ -306,8 +309,11 @@ describe('Domain service', () => { { name: 'b', type: 'A', address: '3' }, { name: 'd', type: 'CNAME', address: 'helo.com' }, ]); - expect(removeZone).toHaveBeenCalledTimes(1); + expect(removeZone).toHaveBeenCalledTimes(4); expect(getRecordCalls(removeZone)).toEqual([ + { line: 101 }, + { line: 100 }, + { line: 99 }, { line: 1 }, ]); @@ -317,8 +323,8 @@ describe('Domain service', () => { ]); expect(removeEmail).toHaveBeenCalledTimes(2); expect(getRecordCalls(removeEmail)).toEqual([ - { domain: 'c.is-a.dev', exchanger: 'mx1.hello.com', priority: 20 }, { domain: 'b.is-a.dev', exchanger: 'foo.bar', priority: 20 }, + { domain: 'c.is-a.dev', exchanger: 'mx1.hello.com', priority: 20 }, ]); expect(addRedir).toHaveBeenCalledTimes(3); diff --git a/utils/domain-service.js b/utils/domain-service.js index 81421f7aa..e66099db1 100644 --- a/utils/domain-service.js +++ b/utils/domain-service.js @@ -1,6 +1,6 @@ const R = require('ramda'); const { cpanel } = require('./lib/cpanel'); -const { DOMAIN_DOMAIN } = require('./constants'); +const { DOMAIN_DOMAIN, VALID_RECORD_TYPES } = require('./constants'); const { then, log, print, lazyTask, batchLazyTasks } = require('./helpers'); const BATCH_SIZE = 1; @@ -23,7 +23,7 @@ const recordToZone = ({ name, type, address, id, priority }) => ({ }); const cleanName = name => - name === DOMAIN_DOMAIN ? '@' : `${name}`.replace(new RegExp(`\\.${DOMAIN_DOMAIN}\\.?$`), '').toLowerCase(); + name === DOMAIN_DOMAIN ? '@' : `${name}`.replace(new RegExp(`\\.?${DOMAIN_DOMAIN}\\.?$`), '').toLowerCase(); const zoneToRecord = ({ name, @@ -85,9 +85,21 @@ const executeBatch = (batches) => batches.reduce((promise, batch, index) => { }); }, Promise.resolve()); +const isReserved = (domain) => + !domain.name || + domain.name.startsWith('*') || + !VALID_RECORD_TYPES.includes(domain.type) + const getDomainService = ({ cpanel }) => { - const fetchZoneRecords = R.compose(then(R.map(zoneToRecord)), cpanel.zone.fetch); - const fetchRedirections = R.compose(then(R.map(redirectionToRecord)), cpanel.redirection.fetch); + const fetchZoneRecords = R.compose( + then(R.filter(R.complement(isReserved))), + then(R.map(zoneToRecord)), + cpanel.zone.fetch + ); + const fetchRedirections = R.compose( + then(R.map(redirectionToRecord)), + cpanel.redirection.fetch + ); const addZoneRecord = lazyTask(R.compose( R.ifElse(R.propEq('type', 'MX'), @@ -120,15 +132,20 @@ const getDomainService = ({ cpanel }) => { const getHosts = () => Promise.all([fetchZoneRecords(), fetchRedirections()]).then(R.flatten); - const addRecords = R.compose(batchLazyTasks(BATCH_SIZE), R.filter(Boolean), R.map(R.cond([ - [R.propEq('name', 'www'), R.always(null)], // Ignore www - [R.propEq('type', 'URL'), addRedirection], - [R.T, addZoneRecord], - ]))); - const removeRecords = R.compose(batchLazyTasks(BATCH_SIZE), R.map(R.cond([ - [R.propEq('type', 'URL'), removeRedirection], - [R.T, removeZoneRecord], - ]))); + const addRecords = R.compose( + batchLazyTasks(BATCH_SIZE), + R.filter(Boolean), + R.map(R.cond([ + [R.propEq('name', 'www'), R.always(null)], // Ignore www + [R.propEq('type', 'URL'), addRedirection], + [R.T, addZoneRecord], + ])), + ); + const removeRecords = R.compose( + batchLazyTasks(BATCH_SIZE), + R.map(R.cond([ [ R.propEq('type', 'URL'), removeRedirection ], [ R.T, removeZoneRecord ] ])), + R.sort((a, b) => b.id - a.id) + ); const updateHosts = async hosts => { const remoteHostList = await getHosts(); diff --git a/utils/lib/cpanel.js b/utils/lib/cpanel.js index 5c098f281..e61b15a0f 100644 --- a/utils/lib/cpanel.js +++ b/utils/lib/cpanel.js @@ -37,7 +37,7 @@ const CpanelClient = (options) => { // -> [{ class, ttl, name, line, Line, cname, type, record }] fetch: R.compose( p => p.then(R.pathOr([], ['cpanelresult', 'data'])), - api2('ZoneEdit', 'fetchzone_records', { customonly: 1, domain: options.domain }) + api2('ZoneEdit', 'fetchzone_records', { customonly: 0, domain: options.domain }) ), // { name, type(A|CNAME), cname, address, ttl } From f0156f5a40433f0aa71d3dfb34dcb23a2a2ce291 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sun, 7 Jan 2024 16:06:07 +0530 Subject: [PATCH 12/24] fix: removes restriction on root record --- scripts/register-domains.js | 2 +- utils/domain-service.js | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/scripts/register-domains.js b/scripts/register-domains.js index 370949af6..55e201a57 100644 --- a/scripts/register-domains.js +++ b/scripts/register-domains.js @@ -15,7 +15,7 @@ const toHostList = R.chain(data => { // URL redirection must contain explicit A record // Wildcard A record breaks when used with MX // Ref: https://github.com/is-a-dev/register/issues/2365 - if (data.record.URL && data.record.MX) { + if (data.record.URL && data.record.MX || data.name === '@') { data.record.A = [ DOMAIN_HOST_IP ] } diff --git a/utils/domain-service.js b/utils/domain-service.js index e66099db1..5cbafaa2a 100644 --- a/utils/domain-service.js +++ b/utils/domain-service.js @@ -23,7 +23,7 @@ const recordToZone = ({ name, type, address, id, priority }) => ({ }); const cleanName = name => - name === DOMAIN_DOMAIN ? '@' : `${name}`.replace(new RegExp(`\\.?${DOMAIN_DOMAIN}\\.?$`), '').toLowerCase(); + [DOMAIN_DOMAIN, `${DOMAIN_DOMAIN}.`].includes(name) ? '@' : `${name}`.replace(new RegExp(`\\.${DOMAIN_DOMAIN}\\.?$`), '').toLowerCase(); const zoneToRecord = ({ name, @@ -63,8 +63,7 @@ const diffRecords = (oldRecords, newRecords) => { const isMatchingRecord = (a, b) => getHostKey(a) === getHostKey(b); const remove = R.differenceWith(isMatchingRecord, oldRecords, newRecords); - const add = R.differenceWith(isMatchingRecord, newRecords, oldRecords) - .filter(r => !['www'].includes(r.name)); + const add = R.differenceWith(isMatchingRecord, newRecords, oldRecords); return { add, remove }; }; @@ -86,8 +85,7 @@ const executeBatch = (batches) => batches.reduce((promise, batch, index) => { }, Promise.resolve()); const isReserved = (domain) => - !domain.name || - domain.name.startsWith('*') || + domain.name.startsWith('*') || !VALID_RECORD_TYPES.includes(domain.type) const getDomainService = ({ cpanel }) => { From e7d299b3ea53ce9d301e60b453710e8af9d56527 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sun, 7 Jan 2024 16:17:17 +0530 Subject: [PATCH 13/24] chore: test fix --- tests/cpanel.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/cpanel.test.js b/tests/cpanel.test.js index d2fbd35a3..162a9a5d3 100644 --- a/tests/cpanel.test.js +++ b/tests/cpanel.test.js @@ -12,7 +12,7 @@ describe('Cpanel client', () => { describe('fetchzonerecords', () => { it('should make the correct request', async () => { const fetch = mockFetch((url, request) => { - expect(url).toBe('https://example.com:2000/json-api/cpanel?customonly=1&domain=a.b&cpanel_jsonapi_user=boy&cpanel_jsonapi_module=ZoneEdit&cpanel_jsonapi_func=fetchzone_records&cpanel_jsonapi_apiversion=2'); + expect(url).toBe('https://example.com:2000/json-api/cpanel?customonly=0&domain=a.b&cpanel_jsonapi_user=boy&cpanel_jsonapi_module=ZoneEdit&cpanel_jsonapi_func=fetchzone_records&cpanel_jsonapi_apiversion=2'); expect(request).toEqual({ headers: { Authorization: 'cpanel boy:boybyebye', @@ -35,7 +35,7 @@ describe('Cpanel client', () => { it('should make the correct request with query', async () => { const fetch = mockFetch((url, request) => { - expect(url).toBe('https://example.com:2000/json-api/cpanel?customonly=1&domain=foobar.boeey&cpanel_jsonapi_user=boy&cpanel_jsonapi_module=ZoneEdit&cpanel_jsonapi_func=fetchzone_records&cpanel_jsonapi_apiversion=2'); + expect(url).toBe('https://example.com:2000/json-api/cpanel?customonly=0&domain=foobar.boeey&cpanel_jsonapi_user=boy&cpanel_jsonapi_module=ZoneEdit&cpanel_jsonapi_func=fetchzone_records&cpanel_jsonapi_apiversion=2'); expect(request).toEqual({ headers: { Authorization: 'cpanel boy:boybyebye', From b1ed09ed303ae5b55f251832a094dcd3ec1c6843 Mon Sep 17 00:00:00 2001 From: b1ek Date: Sun, 7 Jan 2024 21:03:24 +1000 Subject: [PATCH 14/24] feat(domain): restore the blek.is-a.dev --- domains/blek.json | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 domains/blek.json diff --git a/domains/blek.json b/domains/blek.json new file mode 100644 index 000000000..5f5d64848 --- /dev/null +++ b/domains/blek.json @@ -0,0 +1,11 @@ +{ + "description": "blek is a dev", + "owner": { + "username": "b1ek", + "email": "me@blek.codes" + }, + "record": { + "A": [ "185.130.226.115" ] + "AAAA": [ "2a05:b40:0:570:4563:92af:9a56:7fc8" ] + } +} From 4a99e0663ffd1bf51d6bd500cb79ac825542c44e Mon Sep 17 00:00:00 2001 From: b1ek Date: Sun, 7 Jan 2024 21:13:33 +1000 Subject: [PATCH 15/24] fix(domain) fix validation error --- domains/blek.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/domains/blek.json b/domains/blek.json index 5f5d64848..df17670cf 100644 --- a/domains/blek.json +++ b/domains/blek.json @@ -5,7 +5,7 @@ "email": "me@blek.codes" }, "record": { - "A": [ "185.130.226.115" ] + "A": [ "185.130.226.115" ], "AAAA": [ "2a05:b40:0:570:4563:92af:9a56:7fc8" ] } } From 9f24bf9b9e4749ee7bf55d0ca24525b2af8226a4 Mon Sep 17 00:00:00 2001 From: vuthanhtrung2010 <69748032+vuthanhtrung2010@users.noreply.github.com> Date: Sun, 7 Jan 2024 20:21:40 +0700 Subject: [PATCH 16/24] Create lavalink.trung.json --- domains/lavalink.trung.json | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 domains/lavalink.trung.json diff --git a/domains/lavalink.trung.json b/domains/lavalink.trung.json new file mode 100644 index 000000000..c372c8070 --- /dev/null +++ b/domains/lavalink.trung.json @@ -0,0 +1,9 @@ +{ + "owner": { + "username": "vuthanhtrung2010", + "email": "vuthanhtrungsuper@gmail.com" + }, + "record": { + "A": ["69.30.249.53"] + } +} From f428b9fe185e2e2d032269d63b78c5ab66f6acac Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sun, 7 Jan 2024 20:57:47 +0530 Subject: [PATCH 17/24] fix: removes www restriction --- scripts/register-domains.js | 2 +- utils/domain-service.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/register-domains.js b/scripts/register-domains.js index 55e201a57..20670f8af 100644 --- a/scripts/register-domains.js +++ b/scripts/register-domains.js @@ -15,7 +15,7 @@ const toHostList = R.chain(data => { // URL redirection must contain explicit A record // Wildcard A record breaks when used with MX // Ref: https://github.com/is-a-dev/register/issues/2365 - if (data.record.URL && data.record.MX || data.name === '@') { + if ((data.record.URL && data.record.MX) || data.name === '@') { data.record.A = [ DOMAIN_HOST_IP ] } diff --git a/utils/domain-service.js b/utils/domain-service.js index 5cbafaa2a..f5385cc2a 100644 --- a/utils/domain-service.js +++ b/utils/domain-service.js @@ -134,7 +134,7 @@ const getDomainService = ({ cpanel }) => { batchLazyTasks(BATCH_SIZE), R.filter(Boolean), R.map(R.cond([ - [R.propEq('name', 'www'), R.always(null)], // Ignore www + // [R.propEq('name', 'www'), R.always(null)], // Ignore www [R.propEq('type', 'URL'), addRedirection], [R.T, addZoneRecord], ])), From ca4023af75f8101a5671e877953205610a4ffb39 Mon Sep 17 00:00:00 2001 From: aayank13 Date: Sun, 7 Jan 2024 07:43:33 -0800 Subject: [PATCH 18/24] feat(domain): aayank.is-a.dev --- domains/aayank.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 domains/aayank.json diff --git a/domains/aayank.json b/domains/aayank.json new file mode 100644 index 000000000..269b5017e --- /dev/null +++ b/domains/aayank.json @@ -0,0 +1,14 @@ +{ + "owner": { + "username": "aayank13", + "email": "aayank1306@gmail.com" + }, + "record": { + "A": [ + "217.174.245.249", + "51.161.54.161" + ], + "MX": ["mail.is-a.dev"], + "TXT": "v=spf1 mx a:mail.is-a.dev ~all" + } +} \ No newline at end of file From 3efafab38529ea4f398ded73b92ec9860c1039ef Mon Sep 17 00:00:00 2001 From: DarindaDraX <123kishanvish@gmail.com> Date: Sun, 7 Jan 2024 23:05:15 +0530 Subject: [PATCH 19/24] feat(domain): bot.dracx.is-a.dev --- domains/bot.dracx.json | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 domains/bot.dracx.json diff --git a/domains/bot.dracx.json b/domains/bot.dracx.json new file mode 100644 index 000000000..68f770565 --- /dev/null +++ b/domains/bot.dracx.json @@ -0,0 +1,9 @@ +{ + "owner": { + "username": "DarindaDraX", + "email": "123kishanvish@gmail.com" + }, + "record": { + "A": ["69.30.249.53"] + } +} From f3b432bd3a5cc57349d71df5e8662362c9cacabb Mon Sep 17 00:00:00 2001 From: William Harrison Date: Mon, 8 Jan 2024 07:20:06 +0800 Subject: [PATCH 20/24] Create _github-challenge-is-a-dev-org.json --- domains/_github-challenge-is-a-dev-org.json | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 domains/_github-challenge-is-a-dev-org.json diff --git a/domains/_github-challenge-is-a-dev-org.json b/domains/_github-challenge-is-a-dev-org.json new file mode 100644 index 000000000..176de5ce3 --- /dev/null +++ b/domains/_github-challenge-is-a-dev-org.json @@ -0,0 +1,10 @@ +{ + "owner": { + "username": "is-a-dev", + "email": "phenax5@gmail.com" + }, + + "record": { + "TXT": "0162e553bb" + } +} From 18cda7f2ff367a5761626d66f0fd38ff978aad24 Mon Sep 17 00:00:00 2001 From: William Harrison Date: Mon, 8 Jan 2024 07:25:47 +0800 Subject: [PATCH 21/24] chore: update txt --- domains/_github-challenge-is-a-dev-org.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/domains/_github-challenge-is-a-dev-org.json b/domains/_github-challenge-is-a-dev-org.json index 176de5ce3..db1e677a9 100644 --- a/domains/_github-challenge-is-a-dev-org.json +++ b/domains/_github-challenge-is-a-dev-org.json @@ -5,6 +5,6 @@ }, "record": { - "TXT": "0162e553bb" + "TXT": "2c9dfbe7c8" } } From a840881a91b9c580c12f0312347e03f3128d3bfb Mon Sep 17 00:00:00 2001 From: William Harrison Date: Mon, 8 Jan 2024 07:27:26 +0800 Subject: [PATCH 22/24] Create _github-pages-challenge-is-a-dev.team.json --- domains/_github-pages-challenge-is-a-dev.team.json | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 domains/_github-pages-challenge-is-a-dev.team.json diff --git a/domains/_github-pages-challenge-is-a-dev.team.json b/domains/_github-pages-challenge-is-a-dev.team.json new file mode 100644 index 000000000..d7e139dbd --- /dev/null +++ b/domains/_github-pages-challenge-is-a-dev.team.json @@ -0,0 +1,10 @@ +{ + "owner": { + "username": "is-a-dev", + "email": "phenax5@gmail.com" + }, + + "record": { + "TXT": "c551c059fb167540ec0498d9011556" + } +} From ba794e065001d7e8fb3c917ca19c190e4e9ddc5b Mon Sep 17 00:00:00 2001 From: William Harrison Date: Mon, 8 Jan 2024 07:31:30 +0800 Subject: [PATCH 23/24] Discard changes to domains/_discord.jirafey.is-a.dev.json --- domains/_discord.jirafey.is-a.dev.json | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 domains/_discord.jirafey.is-a.dev.json diff --git a/domains/_discord.jirafey.is-a.dev.json b/domains/_discord.jirafey.is-a.dev.json deleted file mode 100644 index 8a5d67e15..000000000 --- a/domains/_discord.jirafey.is-a.dev.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "owner": { - "username": "jirafey", - "email": "jirafey@tuta.io", - } - "record": { - "TXT": "dh=3c80d94ed181b223255b5fbf35f8fda6a402058f" - } -} From 037551e94612d0c601170942c284d1df1fcbc154 Mon Sep 17 00:00:00 2001 From: Nick <76174641+nikxso@users.noreply.github.com> Date: Mon, 8 Jan 2024 11:06:31 +0530 Subject: [PATCH 24/24] [Update username] nik.json --- domains/nik.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/domains/nik.json b/domains/nik.json index 36ee7b613..fae6c2cf1 100644 --- a/domains/nik.json +++ b/domains/nik.json @@ -1,6 +1,6 @@ { "owner": { - "username": "Nikhil", + "username": "nikxso", "email": "nikhilsoniya123@gmail.com", "discord": "nikxso#0000" },