Merge pull request #1 from is-a-dev/main

Merge from main repository
This commit is contained in:
Zan
2020-11-22 19:19:42 +07:00
committed by GitHub
66 changed files with 1290 additions and 666 deletions
+1 -132
View File
@@ -1,132 +1 @@
# How to register
* First you need to create a pull request with your `domains/my-domain.json` file
* This PR will be reviewed
* The changes will take effect soon after the PR gets merged
* And that's it
### Simple cname record
* A github pages json file will look something like this -
```json
{
"description": "Add some description",
"repo": "https://github.com/github-username",
"owner": {
"username": "github-username",
"email": "any@email"
},
"record": {
"CNAME": "the-domain-you-own.com"
}
}
```
* After the pull request is merged, configure your server (apache, nginx, whatever) to work with `subdomain.is-a.dev`
### For github pages users
* A github pages json file will look something like this -
```json
{
"description": "Add some description",
"repo": "https://github.com/github-username/github-username.github.io",
"owner": {
"username": "github-username",
"email": "any@email"
},
"record": {
"CNAME": "github-username.github.io"
}
}
```
* 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
* Check the `Enforce HTTPS` checkbox below the custom domain input
# Domains json file
The way you register your own domain name is through a pull request.
To register `my-domain.is-a.dev`, you need to create a `domains/my-domain.json` file
### Filename
The file name must pass the following criteria -
* Must be alpha-numeric in lowercase with dashes as seperators
* Must be more than 2 characters long
* Must have a `.json` file extension
The file needs to have the following fields -
### owner (required)
You need to specify some information about yourself here.
This is so that you can be contacted if required.
In the owner object, the fields `username` and `email` are required. You can however add more information in this object if you need.
```json
{
"owner": {
"username": "github-username",
"email": "any@email"
},
}
```
If you don't wish to share your email address here, please share your twitter or any other social media account.
```json
{
"owner": {
"username": "github-username",
"email": "",
"twitter": "twitter-handle"
},
}
```
### description
Describe your domain name and your usage. This is purely for documentation purpose and is optional.
### repo
This is a link to your website repository or your github account. This is purely for documentation purpose and is optional.
### record (required)
This is where you specify how you want to link to your server/webpage.
Currently, only `CNAME`, `A`, `URL` record types are supported.
Here's a few different use cases for the given record types -
* **CNAME**
CNAME must be a host name (Eg - `something.tld`)
```json
{
"record": {
"CNAME": "username.github.io"
}
}
```
* **A record**
A record must be a list of ips
```json
{
"record": {
"A": [
"999.999.991.999",
"999.999.992.999",
"999.999.993.999",
"999.999.994.999"
]
}
}
```
* **URL redirection**
```json
{
"record": {
"URL": "https://my-other-website.com"
}
}
```
Moved to [./docs](./docs)
+3 -6
View File
@@ -2,16 +2,13 @@
<br />
is-a-dev is a service that allows developers to get a sweet-looking `.is-a.dev` domain for their personal websites.
Note: This service is currently in **beta** so expect some delays in PR merge and report any issues you encounter so that the service can be improved.
**is-a-dev** is a service that allows developers to get a sweet-looking `.is-a.dev` domain for their personal websites.
## How do I register?
* Fork this project
* Add a `your-domain-name.json` new file in `domains/` directory to register `your-domain-name.is-a.dev`
* [Read the docs for information about the json file](./API.md)
* Add a new `domains/your-domain-name.json` file directory to register `your-domain-name.is-a.dev`
* [Read the docs](./docs)
* The PR will be reviewed and merged
* After merging, the changes will take effect within a day
* That's it! Done! Now go show off your cool `.is-a.dev` domain
+7
View File
@@ -0,0 +1,7 @@
# How to register
You can read the [domains.json file api reference](./domains-json.md) for more information about the json file structure.
### Websites hosted at
* [For github pages users](./hosted-at/github-pages.md)
* [For other services](./hosted-at/others.md)
+88
View File
@@ -0,0 +1,88 @@
# Domains json file
The way you register your own domain name is through a pull request.
To register `my-domain.is-a.dev`, you need to create a `domains/my-domain.json` file
### Filename
The file name must pass the following criteria -
* Must be alpha-numeric in lowercase with dashes as seperators
* Must be more than 2 characters long
* Must have a `.json` file extension
The file needs to have the following fields -
### owner (required)
You need to specify some information about yourself here.
This is so that you can be contacted if required.
In the owner object, the fields `username` and `email` are required. You can however add more information in this object if you need.
```json
{
"owner": {
"username": "github-username",
"email": "any@email"
},
}
```
If you don't wish to share your email address here, please share your twitter or any other social media account.
```json
{
"owner": {
"username": "github-username",
"email": "",
"twitter": "twitter-handle"
},
}
```
### description
Describe your domain name and your usage. This is purely for documentation purpose and is optional.
### repo
This is a link to your website repository or your github account. This is purely for documentation purpose and is optional.
### record (required)
This is where you specify how you want to link to your server/webpage.
Currently, only `CNAME`, `A`, `URL` record types are supported.
Here's a few different use cases for the given record types -
* **CNAME**
CNAME must be a host name (Eg - `something.tld`)
```json
{
"record": {
"CNAME": "username.github.io"
}
}
```
* **A record**
A record must be a list of ips
```json
{
"record": {
"A": [
"999.999.991.999",
"999.999.992.999",
"999.999.993.999",
"999.999.994.999"
]
}
}
```
* **URL redirection**
```json
{
"record": {
"URL": "https://my-other-website.com"
}
}
```
+28
View File
@@ -0,0 +1,28 @@
# For github pages
### Creating a github pages repo
You can create a github pages website by creating a repo with the name `<your-github-username>.github.io`.
For more information about github pages, please read through [their guide](https://guides.github.com/features/pages/).
### Domains file
Create a json file inside the `domains` directory (`domains/<subdomain>.json`) with the following contents
```json
{
"description": "Add some description",
"repo": "https://github.com/github-username/github-username.github.io",
"owner": {
"username": "github-username",
"email": "any@email",
"twitter": "your-twitter-username"
},
"record": {
"CNAME": "github-username.github.io"
}
}
```
### Configuring your repo
* 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
* Check the `Enforce HTTPS` checkbox below the custom domain input
+53
View File
@@ -0,0 +1,53 @@
# For other hosting services
### Domains file
Create a json file inside the `domains` directory (`domains/<subdomain>.json`) with the following contents
```json
{
"description": "Add some description",
"repo": "https://github.com/github-username",
"owner": {
"username": "github-username",
"email": "any@email"
},
"record": {}
}
```
### Record
In your `record` key of the json file, you need to add one of the following -
* CNAME record
```json
{
"record": {
"CNAME": "the-domain-you-own.com"
}
}
```
* A records
```json
{
"record": {
"A": [
"69.69.69.69",
"69.69.69.70"
]
}
}
```
* URL redirection
```json
{
"record": {
"URL": "https://your-website.com"
}
}
```
### Configuring your server
After the pull request is merged, **configure your server** (apache, nginx, whatever) to work with `<subdomain>.is-a.dev`. If you are unsure how to configure your server, you can create an issue for support.
You should also, include `<subdomain>.is-a.dev` in your **ssl certificate** to get rid of certificate errors
+3 -1
View File
@@ -5,5 +5,7 @@
"username": "phenax",
"email": "phenax5@gmail.com"
},
"record": {}
"record": {
"URL": "http://www.is-a.dev"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"description": "Adarsh's portfolio!",
"repo": "https://github.com/adarsh-qclw/adarsh-qclw.github.io",
"owner": {
"username": "adarsh-qclw",
"email": "adoo2001@gmail.com"
},
"record": {
"CNAME": "adarsh-qclw.github.io"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"description": "Adarsh Vijay's Site for things he doesn't know yet",
"repo": "https://github.com/adarsh-av13/adarsh-av13.github.io",
"owner": {
"username": "adarsh-av13",
"email": "dra4474@gmail.com"
},
"record": {
"CNAME": "adarsh-av13.github.io"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"description": "Ahsw Personal Website",
"repo": "https://github.com/Ahsw7",
"owner": {
"username": "Ahsw",
"email": "jasjusjambu.segar@gmail.com"
},
"record": {
"CNAME": "rd73mzgq78p59yq0.preview.edgeapp.net"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"description": "Aizuu's Personal Website",
"repo": "https://github.com/VeguiIzumi",
"owner": {
"username": "Aizuu",
"email": "baby@alvindaldi.my.id"
},
"record": {
"URL": "https://aizuu.my.id"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"description": "my-portfolio website",
"repo": "https://github.com/akashmadhu4",
"owner": {
"username": "akashmadhu4",
"email": "akashmadhu4@gmail.com"
},
"record": {
"CNAME": "akashmadhu.engineer"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "Allvaa's personal website",
"repo": "https://github.com/Allvaa",
"owner": {
"username": "Allvaa",
"email": "",
"twitter": "allvzx"
},
"record": {
"URL": "https://allvaa.my.id"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"description": "My personal portfolio",
"repo": "https://github.com/amar13mehta/amar13mehta.github.io",
"owner": {
"username": "amar13mehta",
"email": "amar13iam@gmail.com"
},
"record": {
"CNAME": "amar13mehta.github.io"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"description": "Personal portfolio",
"repo": "https://github.com/AM-77/am-77.github.io/",
"owner": {
"username": "am-77",
"email": "amine.griche77@protonmail.ch"
},
"record": {
"CNAME": "am-77.github.io"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "Meet Arpana!",
"repo": "https://github.com/winter-code/winter-code",
"owner": {
"username": "winter-code",
"email": "arpana11mehta@gmail.com",
"twitter": "arpana_naa"
},
"record": {
"CNAME": "winter-code.github.io"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"description": "The Interstellar Twilight",
"repo": "https://github.com/avinal/avinal.github.io",
"owner": {
"username": "avinal",
"email": "185067@nith.ac.in"
},
"record": {
"CNAME": "avinal.github.io"
}
}
+2 -2
View File
@@ -1,6 +1,6 @@
{
"description": "Brandons's personal developer website",
"repo": "https://github.com/b-hexsoul",
"description": "Brandon Hexsel - Full Stack Engineer",
"repo": "https://github.com/b-hexsoul/b-hexsoul.github.io",
"owner": {
"username": "b-hexsoul",
"email": "brandon.hexsel@gmail.com"
+11
View File
@@ -0,0 +1,11 @@
{
"description": "Dan's Blog and Portfolio",
"repo": "https://github.com/DanField12/DanField12.github.io.git",
"owner": {
"username": "DanField12",
"email": "dan.field643@gmail.com"
},
"record": {
"CNAME": "DanField12.github.io"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"description": "Dinesh Kumar's personal developer website",
"repo": "https://github.com/dinesh-ysl/dinesh-ysl.github.io",
"owner": {
"username": "dinesh-ysl",
"email": "dseera6@gmail.com"
},
"record": {
"CNAME": "dinesh-ysl.github.io"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"description": "Echo's personal website",
"repo": "https://github.com/echo2477/echo2477.github.io",
"owner": {
"username": "echo2477",
"email": "pku.eko16@gmail.com"
},
"record": {
"CNAME": "echo2477.github.io"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"description": "Epic's github",
"repo": "https://github.com/tag-epic",
"owner": {
"username": "tag-epic",
"email": "tagepicuwu@gmail.com"
},
"record": {
"URL": "http://github.com/tag-epic"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"description": "Fayyadh Personal Website",
"repo": "https://github.com/Abdurrahman075/reweb",
"owner": {
"username": "Fayyadh",
"email": "fayyadh.abdurrahman007@gmail.com"
},
"record": {
"CNAME": "glitch.edgeapp.net"
}
}
+1 -3
View File
@@ -4,8 +4,6 @@
"email": "domains@dontsend.me"
},
"record": {
"A": [
"50.116.28.162"
]
"URL": "https://me.getify.com"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "Gustavo Arsenio's talk blog ",
"repo": "https://github.com/GustavoArsenio/GustavoArsenio.github.io",
"owner": {
"username": "GustavoArsenio",
"email": "Gustavo.arsenio.sousa@hotmail.com",
"twitter": "gustavoarsenio"
},
"record": {
"CNAME": "GustavoArsenio.github.io"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"description": "Nystrex's Personal Website",
"repo": "https://github.com/Nystrex",
"owner": {
"username": "Nystrex",
"email": "hadi@nystrex.com"
},
"record": {
"CNAME": "nystrex.com"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"description": "Vedant Naidu's Portfolio",
"repo": "https://github.com/Flash2014/Flash2014.github.io",
"owner": {
"username": "Flash2014",
"email": "naiduvedant@gmail.com"
},
"record": {
"CNAME": "Flash2014.github.io"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"description": "Jeff Jessie's Portfolio Website",
"repo": "https://github.com/j3ffjessie/j3ffjessie.github.io",
"owner": {
"username": "j3ffjessie",
"email": "j3ffjessie@protonmail.com"
},
"record": {
"CNAME": "j3ffjessie.github.io"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "Jeferson Brito's Portfolio",
"repo": "https://github.com/jeferson-sb/portfolio",
"owner": {
"username": "jeferson-sb",
"email": "",
"linkedin": "https://www.linkedin.com/in/jeferson-sb/"
},
"record": {
"URL": "https://www.jefersonsilva.me/"
}
}
+10
View File
@@ -0,0 +1,10 @@
{
"description": "joesbrandt",
"owner": {
"username": "joesbrandt",
"email": "joesbrandt@icloud.com"
},
"record": {
"CNAME": "joesbrandt.github.io"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "Portfolio website",
"repo": "https://github.com/dkaviarasu/dkaviarasu.github.io",
"owner": {
"username": "dkaviarasu",
"email": "",
"twitter": "kaviarasudm"
},
"record": {
"CNAME": "dkaviarasu.github.io"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "Ken Pemberton",
"email": "kenpem@gmail.com"
},
"record": {
"CNAME": "grumpyoldfart.org"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"description": "Liju's personal development page",
"repo": "https://github.com/lijujayakumar/lijujayakumar.github.io",
"owner": {
"username": "lijujayakumar",
"email": "lijusankar@gmail.com"
},
"record": {
"CNAME": "lijujayakumar.github.io"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"owner": {
"username": "lsantana486",
"email": "lsantana.486@gmail.com"
},
"description": "Personal domain for portofolio with my name Luis Santana",
"repo": "https://github.com/lsantana486/lsantana486",
"record": {
"CNAME": "lsantana.dev"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"description": "Michael's personal developer website",
"repo": "https://github.com/mbrav",
"owner": {
"username": "mbrav",
"email": "mbrav@protonmail.com"
},
"record": {
"CNAME": "mbrav.github.io"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"description": "Meong github page using .is-a.dev subdomain",
"repo": "https://github.com/Fauzannnnh/fauzannnnh.github.io",
"owner": {
"username": "Fauzannnnh",
"email": "fauzan@eenthlh.xyz"
},
"record": {
"CNAME": "fauzannnnh.github.io"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"description": "This website is a link to my personal blog.",
"repo": "https://github.com/mioscape/mioscape.github.io",
"owner": {
"username": "mioscape",
"email": "mioscape@gmail.com"
},
"record": {
"CNAME": "mioscape.github.io"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "Mohaned's personal website",
"repo": "https://github.com/mohanedashraf/mohanedashraf.github.io",
"owner": {
"username": "mohanedashraf",
"email": "",
"twitter": "mohanedzz"
},
"record": {
"CNAME": "mohanedashraf.github.io"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "neslinesli93",
"email": "p.tommy93@gmail.com"
},
"record": {
"CNAME": "tommasopifferi.com"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"description": "Prabhakaran J M is a dev",
"repo": "https://github.com/prajaymas/prajaymas.github.io",
"owner": {
"username": "prabhakaranjm",
"email": "prabhakaran.jm@gmail.com"
},
"record": {
"CNAME": "prajaymas.github.io"
}
}
+1 -1
View File
@@ -6,6 +6,6 @@
"email": "neilblaze007@gmail.com"
},
"record": {
"CNAME": "neilblaze-v2.netlify.app"
"CNAME": "neilblaze.github.io"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"description": "This website is a link to my personal developer portfolio.",
"repo": "https://github.com/rafalmeida73/rafalmeida73.github.io",
"owner": {
"username": "rafalmeida73",
"email": "rafaelsantana7213@gmail.com"
},
"record": {
"CNAME": "rafalmeida73.github.io"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"description": "Robert's portfolio",
"repo": "https://github.com/treboryx",
"owner": {
"username": "treboryx",
"email": "treboryx@gmail.com"
},
"record": {
"CNAME": "roberto.gr"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"description": "I like computers",
"repo": "https://github.com/rohithill/rohithill.github.io",
"owner": {
"username": "rohithill",
"email": "truezeroxy@gmail.com"
},
"record": {
"CNAME": "rohithill.github.io"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"description": "My personal Portfolio",
"repo": "https://github.com/RohitKaushal7/RohitKaushal7.github.io",
"owner": {
"username": "RohitKaushal7",
"email": "rohitkk252550@gmail.com"
},
"record": {
"CNAME": "rohitkaushal7.github.io"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "URL forwarder",
"repo": "https://github.com/roydondsouza",
"owner": {
"username": "roydondsouza",
"email": "",
"twitter": "roydondsouza"
},
"record": {
"CNAME": "roydondsouza.github.io"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "URL forwarder",
"repo": "https://github.com/roydondsouza",
"owner": {
"username": "roydondsouza",
"email": "",
"twitter": "roydondsouza"
},
"record": {
"URL": "https://www.roydondsouza.com"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"description": "Personal portfolio site",
"repo": "https://github.com/saeef/isaeef.git",
"owner": {
"username": "saeef",
"email": "saeef@outlook.com"
},
"record": {
"CNAME": "saeef.github.io"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"owner": {
"username": "Diordnas",
"email": "alessandroeliot@gmail.com"
},
"description": "Personal site, as well as hosting a few tools",
"repo": "https://github.com/diordnas/diordnas.github.io",
"record": {
"CNAME": "diordnas.github.io"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"description": "Sascha Monteiro's personal dev website",
"repo": "https://github.com/saschamonteiro",
"owner": {
"username": "saschamonteiro",
"email": "info@purejs.com"
},
"record": {
"CNAME": "www.purejs.com"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"description": "The Slavic Dev Website",
"repo": "https://github.com/SlavicMan/slavicman.github.io",
"owner": {
"username": "SlavicMan",
"email": "kizz4114@yahoo.com"
},
"record": {
"CNAME": "slavicman.github.io"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"description": "starkblaze01's world",
"repo": "https://github.com/starkblaze01/starkblaze01",
"owner": {
"username": "starkblaze01",
"email": "mp.pathela@gmail.com"
},
"record": {
"URL": "https://starkblaze01.netlify.app/"
}
}
+2 -2
View File
@@ -1,11 +1,11 @@
{
"description": "Tharindu's personal developer website",
"repo": "https://github.com/tharindusathis/tharindu",
"repo": "https://github.com/tharindusathis/tharindusathis.github.io",
"owner": {
"username": "tharindusathis",
"email": "tharindu.sathis@gmail.com"
},
"record": {
"CNAME": "tharindu.vercel.app"
"CNAME": "tharindusathis.github.io"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"description": "Tibebe is a dev",
"repo": "https://github.com/TibebeJS/tibebejs.github.io",
"owner": {
"username": "TibebeJs",
"email": "tibebes.js@gmail.com"
},
"record": {
"CNAME": "tibebejs.github.io"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"description": "Enterprise ID Website",
"repo": "https://github.com/Enterprise-ID",
"owner": {
"username": "enterpriseid",
"email": "enterprise.id13@gmail.com"
},
"record": {
"CNAME": "tokisaki.xyz"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"description": "Tristans personal Website",
"repo": "https://github.com/holymarcell",
"owner": {
"username": "holymarcell",
"email": "is-a.dev@holy-mail.de"
},
"record": {
"URL": "https://holy-mail.de"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "Willian Arsenio's Website",
"repo": "https://github.com/waveiro/waveiro.github.io",
"owner": {
"username": "waveiro",
"email": "",
"twitter": "@waveiro"
},
"record": {
"CNAME": "waveiro.github.io"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "A First Willo`s Website",
"repo": "https://github.com/WilloIzCitron/willoizcitron.github.io",
"owner": {
"username": "WilloIzCitron",
"email": "",
"twitter": "tegasaziz"
},
"record": {
"CNAME": "willoizcitron.github.io"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"description": "YajTPG's website",
"repo": "https://github.com/YajTPG/yajtpg.github.io",
"owner": {
"username": "YajTPG",
"email": "yajtpg@gmail.com"
},
"record": {
"CNAME": "yajtpg.github.io"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"description": "ysfchn's personal website",
"repo": "https://github.com/ysfchn",
"owner": {
"username": "ysfchn",
"email": "hi@ysfchn.com"
},
"record": {
"URL": "https://ysfchn.com"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"description": "ZeroTwo's Website",
"repo": "https://github.com/ZeroTwoDev",
"owner": {
"username": "ZeroTwoDev",
"email": "zerotwo@zerotwo.bot"
},
"record": {
"CNAME": "zerotwodev.github.io"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"description": "A simple non-static site for Zhycorp",
"repo": "https://github.com/zhycorp",
"owner": {
"username": "zhycorp",
"email": "support@zhycorp.xyz"
},
"record": {
"CNAME": "rd73mzgq7jp59yq0.preview.edgeapp.net"
}
}
+1 -1
View File
@@ -7,7 +7,7 @@ const migrate = ([file, domain]) => [
file,
{
...domain,
record: /\.is-a\.dev$/.test(domain.record.URL || '')
record: file !== '@.json' && /\.is-a\.dev$/.test(domain.record.URL || '')
? R.dissoc('URL', domain.record)
: domain.record,
}
+3 -3
View File
@@ -6,7 +6,7 @@ const { then, log, print, lazyTask, batchLazyTasks } = require('./helpers');
const BATCH_SIZE = 1;
const recordToRedirection = ({ name, address }) => ({
domain: `${name}.${DOMAIN_DOMAIN}`,
domain: name === '@' ? DOMAIN_DOMAIN : `${name}.${DOMAIN_DOMAIN}`,
redirect: address,
type: 'permanent',
redirect_wildcard: 1,
@@ -20,7 +20,7 @@ const recordToZone = ({ name, type, address, id }) => ({
...(type === 'CNAME' ? { cname: address } : {}),
});
const cleanName = name => `${name}`.replace(new RegExp(`\\.${DOMAIN_DOMAIN}\\.?$`), '').toLowerCase();
const cleanName = name => name === DOMAIN_DOMAIN ? '@' : `${name}`.replace(new RegExp(`\\.${DOMAIN_DOMAIN}\\.?$`), '').toLowerCase();
const zoneToRecord = ({ name, type, cname, address, record, line: id }) => ({
id,
@@ -42,7 +42,7 @@ const diffRecords = (oldRecords, newRecords) => {
const remove = R.differenceWith(isMatchingRecord, oldRecords, newRecords);
const add = R.differenceWith(isMatchingRecord, newRecords, oldRecords)
.filter(r => !['www', '@'].includes(r.name));
.filter(r => !['www'].includes(r.name));
return { add, remove };
};
+531 -515
View File
File diff suppressed because it is too large Load Diff