diff --git a/API.md b/API.md index 746f953f1..43bc51d64 100644 --- a/API.md +++ b/API.md @@ -22,7 +22,7 @@ } ``` * After the pull request is merged, you will see a 404 error on `your-domain.is-a.dev`. To fix this go to your github page repo's `Settings > Github pages > Custom domain` and add `your-domain.is-a.dev` in the given field -* If you have added the `URL` record for forced https, check the `Enforce HTTPS` checkbox too +* Check the `Enforce HTTPS` checkbox below the custom domain input diff --git a/domains/adrian.json b/domains/adrian.json new file mode 100644 index 000000000..d2873ec12 --- /dev/null +++ b/domains/adrian.json @@ -0,0 +1,12 @@ +{ + "description": "The awesome portfolio site for Adrian Grimm", + "repo": "https://github.com/usmcamgrimm/usmcamgrimm.github.io", + "owner": { + "username": "usmcamgrimm", + "email": "usmcamgrimm@gmail.com" + }, + "record": { + "CNAME": "usmcamgrimm.github.io", + "URL": "https://adrian.is-a.dev" + } + } diff --git a/domains/ahmadeyamin.json b/domains/ahmadeyamin.json new file mode 100644 index 000000000..1e8007a2c --- /dev/null +++ b/domains/ahmadeyamin.json @@ -0,0 +1,12 @@ +{ + "description": "Eyamin Personal Website", + "repo": "https://github.com/ahmadeyamin/ahmadeyamin.github.io", + "owner": { + "username": "ahmadeyamin", + "email": "ahmadeyamin@gmail.com" + }, + "record": { + "CNAME": "ahmadeyamin.github.io", + "URL": "https://ahmadeyamin.is-a.dev" + } +} diff --git a/domains/akas.json b/domains/akas.json new file mode 100644 index 000000000..a0ddc0f4e --- /dev/null +++ b/domains/akas.json @@ -0,0 +1,12 @@ +{ + "description": "Akas Portfolio", + "repo":"https://github.com/akasrai/akasrai.github.io", + "owner": { + "username": "akasrai", + "email": "akasky70@gmail.com" + }, + "record": { + "CNAME":"akasrai.github.io", + "URL": "https://akas.is-a.dev" + } +} \ No newline at end of file diff --git a/domains/alexander.json b/domains/alexander.json new file mode 100644 index 000000000..43758f6d1 --- /dev/null +++ b/domains/alexander.json @@ -0,0 +1,12 @@ +{ + "description": "Alexander's personal website", + "repo": "https://github.com/amatzen", + "owner": { + "username": "amatzen", + "email": "alexander@alexander.dk" + }, + "record": { + "CNAME": "alexander.dk", + "URL": "https://alexander.is-a.dev" + } +} diff --git a/domains/allan.json b/domains/allan.json new file mode 100644 index 000000000..6ca03fa35 --- /dev/null +++ b/domains/allan.json @@ -0,0 +1,12 @@ +{ + "description": "Allan's personal website", + "repo": "https://github.com/abarriel", + "owner": { + "username": "abarriel", + "email": "abarriel@student.42.fr" + }, + "record": { + "CNAME": "abarriel.github.io", + "URL": "https://allan.is-a.dev" + } +} diff --git a/domains/amal.json b/domains/amal.json new file mode 100644 index 000000000..bbf4685c6 --- /dev/null +++ b/domains/amal.json @@ -0,0 +1,12 @@ +{ + "description": "Amal's personal developer website", + "repo": "https://github.com/amalsebs/amalsebs.github.io", + "owner": { + "username": "amalsebs", + "email": "amalsebastian48@gmail.com" + }, + "record": { + "CNAME": "amalsebs.github.io", + "URL": "https://amal.is-a.dev" + } +} diff --git a/domains/asad-khan.json b/domains/asad-khan.json new file mode 100644 index 000000000..fc9c93aa0 --- /dev/null +++ b/domains/asad-khan.json @@ -0,0 +1,12 @@ +{ + "description": "👋 Hello there! I'm Asad, nice to meet you. Building things that bring delight to users is what I enjoy, always learning new stuff everyday.", + "repo": "https://github.com/asadkhan777", + "owner": { + "username": "asadkhan777", + "email": "asadkhan1776@gmail.com" + }, + "record": { + "CNAME": "asadkhan777.github.io", + "URL": "https://asad-khan.is-a.dev" + } +} diff --git a/domains/atlas.json b/domains/atlas.json new file mode 100644 index 000000000..b02d23321 --- /dev/null +++ b/domains/atlas.json @@ -0,0 +1,12 @@ +{ + "description": "Portfolio website", + "repo": "https://github.com/robertdrakedennis/portfolio", + "owner": { + "username": "robertdrakedennis", + "email": "robertdennispersonal@gmail.com" + }, + "record": { + "CNAME": "robertdennis.netlify.app", + "URL": "https://atlas.is-a.dev" + } +} diff --git a/domains/augustine.json b/domains/augustine.json new file mode 100644 index 000000000..83610f675 --- /dev/null +++ b/domains/augustine.json @@ -0,0 +1,12 @@ +{ + "description": "Augustine's personal developer website", + "repo": "https://github.com/augustineaykara", + "owner": { + "username": "augustineaykara", + "email": "augustineaykara@gmail.com" + }, + "record": { + "CNAME": "augustine.aykara4.com", + "URL": "https://augustine.is-a.dev" + } +} diff --git a/domains/bae.json b/domains/bae.json new file mode 100644 index 000000000..bdde25c56 --- /dev/null +++ b/domains/bae.json @@ -0,0 +1,13 @@ +{ + "description": "Bae's personal website", + + "owner": { + "username": "ba-e", + "email": "bae.nyom@gmail.com" + }, + + "record": { + "CNAME": "bae.codes", + "URL": "https://bae.is-a.dev" + } +} \ No newline at end of file diff --git a/domains/bree.json b/domains/bree.json new file mode 100644 index 000000000..d5ce25a31 --- /dev/null +++ b/domains/bree.json @@ -0,0 +1,12 @@ +{ + "description": "Bree is a Dev", + "repo": "https://github.com/breekoy/breekoy.github.io", + "owner": { + "username": "breekoy", + "email": "mcwall.breekoy@gmail.com" + }, + "record": { + "CNAME": "breekoy.github.io", + "URL": "https://bree.is-a.dev" + } +} \ No newline at end of file diff --git a/domains/epgeroy.json b/domains/epgeroy.json new file mode 100644 index 000000000..b392aa312 --- /dev/null +++ b/domains/epgeroy.json @@ -0,0 +1,13 @@ + +{ + "description": "/home/epgeroy", + "repo": "https://github.com/epgeroy/epgeroy.github.io", + "owner": { + "username": "epgeroy", + "email": "epgeroy@gmail.com" + }, + "record": { + "CNAME": "epgeroy.github.io", + "URL": "https://epgeroy.is-a.dev" + } +} diff --git a/domains/george.json b/domains/george.json new file mode 100644 index 000000000..5246589f1 --- /dev/null +++ b/domains/george.json @@ -0,0 +1,11 @@ +{ + "description": "George Aykara's personal developer website", + "repo": "https://github.com/aykarageorge", + "owner": { + "username": "aykarageorge", + "email": "aykarageorge@gmail.com" + }, + "record": { + "CNAME": "george.aykara4.com" + } +} diff --git a/domains/harry.json b/domains/harry.json new file mode 100644 index 000000000..dc5607be3 --- /dev/null +++ b/domains/harry.json @@ -0,0 +1,11 @@ +{ + "owner": { + "username": "Harry-Ross", + "email": "hazross@hotmail.com" + }, + "description": "Personal site/blog", + "repository": "https://github.com/Harry-Ross/harry-ross.github.io.git", + "record": { + "CNAME": "harry-ross.github.io" + } +} diff --git a/domains/haseena.json b/domains/haseena.json new file mode 100644 index 000000000..8bf324844 --- /dev/null +++ b/domains/haseena.json @@ -0,0 +1,12 @@ +{ + "description": "Haseena's website", + "repo": "https://github.com/haseena-hassan/is-a-dev", + "owner": { + "username": "haseena-hassan", + "email": "haseena2199@gmail.com" + }, + "record": { + "CNAME": "haseena-hassan.github.io", + "URL": "https://haseena.is-a.dev" + } +} diff --git a/domains/ireknazm.json b/domains/ireknazm.json new file mode 100644 index 000000000..3d5604bb3 --- /dev/null +++ b/domains/ireknazm.json @@ -0,0 +1,12 @@ +{ + "description": "The domain will be used for a new version of my portfolio site, later in a future :)", + "repo": "https://github.com/Nagellan/Portfolio-v2", + "owner": { + "username": "Nagellan", + "email": "ireknazmievirek@gmail.com" + }, + "record": { + "CNAME": "Nagellan.github.io", + "URL": "https://ireknazm.is-a.dev" + } +} diff --git a/domains/jackiso.json b/domains/jackiso.json new file mode 100644 index 000000000..72ec59ad2 --- /dev/null +++ b/domains/jackiso.json @@ -0,0 +1,11 @@ +{ + "description": "JaCkIsO is a Developer!", + "owner": { + "username": "JaCkIsO", + "email": "jackisodev@gmail.com" + }, + "record": { + "CNAME": "JaCkIsO.github.io", + "URL": "https://jackiso.is-a.dev" + } +} \ No newline at end of file diff --git a/domains/kaguwo.json b/domains/kaguwo.json new file mode 100644 index 000000000..a0e384049 --- /dev/null +++ b/domains/kaguwo.json @@ -0,0 +1,11 @@ +{ + "description": "Kaguwo's Personal Website", + "owner": { + "username": "kaguwomin", + "email": "business@kaguwo.com" + }, + "record": { + "CNAME": "kaguwo.com", + "URL": "https://kaguwo.is-a.dev" + } +} diff --git a/domains/m42e.json b/domains/m42e.json new file mode 100644 index 000000000..eae93cb4d --- /dev/null +++ b/domains/m42e.json @@ -0,0 +1,12 @@ +{ + "description": "m42e Homepage", + "repo": "https://github.com/m42e", + "owner": { + "username": "m42e", + "email": "matthias@bilger.info" + }, + "record": { + "CNAME": "bilger.info", + "URL": "https://m42e.is-a.dev" + } +} diff --git a/domains/masood.json b/domains/masood.json new file mode 100644 index 000000000..376e62225 --- /dev/null +++ b/domains/masood.json @@ -0,0 +1,12 @@ +{ + "description": "Masood Mohammad's Personal Website", + "repo": "https://github.com/masoodbinmohammad", + "owner": { + "username": "masoodbinmohammad", + "email": "masoodbinmohammad@hotmail.com" + }, + "record": { + "CNAME": "masoodbinmohammad.github.io", + "URL": "https://masood.is-a.dev" + } +} diff --git a/domains/nishant.json b/domains/nishant.json new file mode 100644 index 000000000..8c827c715 --- /dev/null +++ b/domains/nishant.json @@ -0,0 +1,12 @@ +{ + "description": "Nishant's website and blog", + "repo": "https://github.com/nishch/nishch.github.io", + "owner": { + "username": "nishch", + "email": "nishantchvedi@gmail.com" + }, + "record": { + "CNAME": "twistedsoft.com", + "URL": "https://nishant.is-a.dev" + } +} diff --git a/domains/parshnt.json b/domains/parshnt.json new file mode 100644 index 000000000..8319fd350 --- /dev/null +++ b/domains/parshnt.json @@ -0,0 +1,12 @@ +{ + "description": "YAY, new place for my Portfolio", + "repo": "https://github.com/parshnt", + "owner": { + "username": "parshnt", + "email": "hi.parshant@gmail.com" + }, + "record": { + "CNAME": "parshnt.github.io", + "URL": "https://parshnt.is-a.dev" + } +} diff --git a/domains/peris.json b/domains/peris.json new file mode 100644 index 000000000..cf24596f8 --- /dev/null +++ b/domains/peris.json @@ -0,0 +1,12 @@ +{ + "description": "Peris's Portfolio", + "repo": "https://github.com/perisrai/perisrai.github.io", + "owner": { + "username": "perisrai", + "email": "perishrai@gmail.com" + }, + "record": { + "CNAME": "perisrai.github.io", + "URL": "https://peris.is-a.dev" + } + } \ No newline at end of file diff --git a/domains/picklerick.json b/domains/picklerick.json new file mode 100644 index 000000000..b9d70f69e --- /dev/null +++ b/domains/picklerick.json @@ -0,0 +1,12 @@ +{ + "description": "cool stuff", + "repo": "https://github.com/ticklerick/ticklerick.github.io", + "owner": { + "username": "ticklerick", + "email": "pickle@anonemail.net" + }, + "record": { + "CNAME": "ticklerick.github.io", + "URL": "https://picklerick.is-a.dev" + } +} \ No newline at end of file diff --git a/domains/rahul.json b/domains/rahul.json new file mode 100644 index 000000000..7b828647b --- /dev/null +++ b/domains/rahul.json @@ -0,0 +1,12 @@ +{ + "description": "Rahul's personal developer website", + "repo": "https://github.com/rahuldahal", + "owner": { + "username": "rahuldahal", + "email": "rdaahal@gmail.com" + }, + "record": { + "CNAME": "rahuldahal.com.np", + "URL": "https://rahul.is-a.dev" + } +} diff --git a/domains/sailesh.json b/domains/sailesh.json new file mode 100644 index 000000000..641f1d263 --- /dev/null +++ b/domains/sailesh.json @@ -0,0 +1,10 @@ +{ + "description": "Sailesh's Personal Website", + "owner": { + "username": "saileshbro", + "email": "saileshbro@gmail.com" + }, + "record": { + "CNAME": "saileshbro.github.io" + } +} diff --git a/domains/sandeepv.json b/domains/sandeepv.json new file mode 100644 index 000000000..be12d1570 --- /dev/null +++ b/domains/sandeepv.json @@ -0,0 +1,12 @@ +{ + "description": "Sandeep's personal website", + "owner": { + "username": "SandeepVattapparambil", + "email": "sandeepv68@gmail.com" + }, + "record": { + "CNAME": "sandeepv.in", + "URL": "https://sandeepv.is-a.dev" + } + } + \ No newline at end of file diff --git a/domains/sarath.json b/domains/sarath.json new file mode 100644 index 000000000..757b1183f --- /dev/null +++ b/domains/sarath.json @@ -0,0 +1,12 @@ +{ + "description": "Sarath's Website", + "repo": "https://github.com/Sharkaboi/sharkaboi.github.io", + "owner": { + "username": "Sharkaboi", + "email": "sarathsedu@gmail.com" + }, + "record": { + "CNAME": "sharkaboi.github.io", + "URL": "https://sarath.is-a.dev" + } + } \ No newline at end of file diff --git a/domains/shane.json b/domains/shane.json new file mode 100644 index 000000000..473adfbbf --- /dev/null +++ b/domains/shane.json @@ -0,0 +1,12 @@ +{ + "description": "Shane Vandegrift, a friendly fullstack developer", + "repo": "https://github.com/vandesm14/vandesm14.github.io", + "owner": { + "username": "Vandesm14", + "email": "vandesm14@gmail.com" + }, + "record": { + "CNAME": "vandesm14.github.io", + "URL": "https://shane.is-a.dev" + } +} diff --git a/domains/sharath.json b/domains/sharath.json new file mode 100644 index 000000000..c213eb826 --- /dev/null +++ b/domains/sharath.json @@ -0,0 +1,12 @@ +{ + "description": "Social media website project.", + "repo": "https://github.com/thesct22", + "owner": { + "username": "thesct22", + "email": "sharathct22@gmail.com" + }, + "record": { + "CNAME": "thesct22.github.io", + "URL": "http://sharath.is-a.dev" + } +} diff --git a/domains/tokyo.json b/domains/tokyo.json new file mode 100644 index 000000000..fb1814029 --- /dev/null +++ b/domains/tokyo.json @@ -0,0 +1,12 @@ +{ + "description": "A-Tokyo's website", + "repo": "https://github.com/a-tokyo/tokyo", + "owner": { + "username": "a-tokyo", + "email": "ahmed.tokyo1@gmail.com" + }, + "record": { + "CNAME": "a-tokyo.github.io", + "URL": "https://tokyo.is-a.dev" + } +} diff --git a/domains/yuksel.json b/domains/yuksel.json new file mode 100644 index 000000000..5e110378e --- /dev/null +++ b/domains/yuksel.json @@ -0,0 +1,12 @@ +{ + "description": "Yuksel Beyti's personal developer website", + "repo": "https://github.com/yuks/yuks.github.io", + "owner": { + "username": "yuks", + "email": "admin@yukselbeyti.com" + }, + "record": { + "CNAME": "yuks.github.io", + "URL": "https://yuksel.is-a.dev" + } +} diff --git a/scripts/migrate.js b/scripts/migrate.js new file mode 100644 index 000000000..e5da7ebf5 --- /dev/null +++ b/scripts/migrate.js @@ -0,0 +1,30 @@ +const fs = require('fs'); +const path = require('path'); +const R = require('ramda'); +const { DOMAINS_PATH } = require('./utils/constants'); + +const migrate = ([file, domain]) => [ + file, + { + ...domain, + record: /\.github\.io$/.test(domain.record.CNAME || '') + ? R.dissoc('URL', domain.record) + : domain.record, + } +]; + +const main = async () => { + const domains = await fs.promises.readdir(DOMAINS_PATH).then(R.map(async file => [ + file, + JSON.parse(await fs.promises.readFile(path.join(DOMAINS_PATH, file), 'utf-8')), + ])).then(ps => Promise.all(ps)); + + const newDomains = domains.map(migrate); + + await Promise.all(newDomains.map(([file, json]) => { + return fs.promises.writeFile(path.join(DOMAINS_PATH, file), JSON.stringify(json, null, 2)); + })); +}; + +main(); + diff --git a/scripts/reply.js b/scripts/reply.js index b4fad71ae..9c5fc11b2 100644 --- a/scripts/reply.js +++ b/scripts/reply.js @@ -11,7 +11,7 @@ If your domain points to a server you own, add \`domain-name.is-a.dev\` to your * Open up the **settings** tab * Scroll down to the **Github pages** section * In the **Custom domain** text input, enter the domain you registered (\`domain-name.is-a.dev\`) -* Check the 'Enforce HTTPS' check box if you added the URL record for forced https redirection +* Check the 'Enforce HTTPS' checkbox below the input * Give it some time to reflect and you should be good to go diff --git a/utils/domain-service.js b/utils/domain-service.js index f78652740..733ca29b6 100644 --- a/utils/domain-service.js +++ b/utils/domain-service.js @@ -9,7 +9,7 @@ const recordToRedirection = ({ name, address }) => ({ redirect: address, type: 'permanent', redirect_wildcard: 1, - redirect_www: 0, + redirect_www: 1, }); const recordToZone = ({ name, type, address, ...rec }) => ({ ...rec, //line