Merge branch 'main' into patch-1

This commit is contained in:
Akshay Nair
2021-04-11 23:07:36 +05:30
committed by GitHub
13 changed files with 140 additions and 6 deletions
+21
View File
@@ -0,0 +1,21 @@
FROM ubuntu:20.04
ENV TERM xterm
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 npm i -g n yarn && n 15.11
RUN node -v
WORKDIR /opt/app
COPY yarn.lock .
COPY package.json .
RUN yarn install
CMD ["sh", "-c", "cp -r node_modules code; cd code; tail -f /dev/null"]
+5
View File
@@ -4,6 +4,8 @@
**is-a-dev** is a service that allows developers to get a sweet-looking `.is-a.dev` domain for their personal websites.
> **[Looking for maintainers](https://github.com/is-a-dev/register/discussions/667)**
## How do I register?
* Fork this project
@@ -27,3 +29,6 @@ Please consider donating to help me keep this running forever!
## License
This project is under the [GPL-3.0](./LICENSE) license.
## Team
This Is Owned By [Phenax](https://akshay.is-a.dev), And Managed By [MTGSquad](https://mtg.is-a.dev)
+5 -3
View File
@@ -5,10 +5,12 @@ let
nixPackages = with pkgs; [
nodejs-15_x
yarn
dnsutils
certbot
docker-compose
#dnsutils
#certbot
];
in pkgs.stdenv.mkDerivation {
in
pkgs.stdenv.mkDerivation {
name = "env";
buildInputs = nixPackages;
}
+8
View File
@@ -0,0 +1,8 @@
version: '3'
services:
dev:
build:
context: .
dockerfile: ./Dockerfile
volumes:
- ./:/opt/app/code
+32
View File
@@ -0,0 +1,32 @@
# Reviewing pull requests
There are a few things you'll need to look out for when reviewing pull requests for domain registrations. This list is not exhaustive and will be updated.
### CI errors
A lot of minor issues will be caught in the CI checks
* JSON parsing issues
* Schema issues
If the CI is failing, tag the user and comment on the pr.
### Invalid email/social link
A way to contact the user is important in case we need to inform the users of some changes to the project.
Confirm if the email looks valid or the social user name/link works.
The user should have either an email or a valid social link.
### Invalid CNAME
CNAME has to be a hostname. Something like 'example.com'.
People tend to accidentally put a url there instead sometimes like `http://something.com` or `something.com/path`.
Both of those are invalid.
### Invalid A
A record has to be an array of ips
### Only one record type
Earlier, is-a-dev used to allow for handling https redirections along with CNAME but the way we handle requests has changed since then.
This is why a record file can only contain one record type. Either `CNAME` or `A` or `URL`.
+11
View File
@@ -0,0 +1,11 @@
# Publishing records
> NOTE: This is only for maintainers with publishing access
Currently, the records are published using a manual github actions workflow.
When all the PR's are merged and ready, go to `Actions > Publish records` and click on the `Run workflow` button to publish the merged records.
Sometimes it may log an error message while publishing saying some record(s) couldn't be published.
Usually, the cause is related to some conflict while deleting and re-publishing.
In those situations, running the workflow again will fix the issues.
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "aanthr0",
"email": "anthromadayt@gmail.com"
},
"record": {
"URL": "http://bh006.bluefoxhost.com:8215"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"description": "The personal website for LuanRT",
"repo": "https://github.com/luanrt/luanrt.github.io",
"owner": {
"username": "luanrt",
"email": "luan.lrt4@gmail.com"
},
"record": {
"CNAME": "luanrt.github.io"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"description": "This website is a link to my personal developer portfolio.",
"repo": "https://github.com/mtgsquad/mahir-molai",
"owner": {
"username": "mtgsquad",
"email": "mtgissmart@gmail.com"
},
"record": {
"CNAME": "mahir-molai.pages.dev"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"description": "My personal portfolio site",
"repo": "https://github.com/Niteshballa",
"owner": {
"username": "Niteshballa",
"email": "nithesh.mom@gmail.com"
},
"record": {
"CNAME": "Niteshballa.github.io"
}
}
+1 -1
View File
@@ -3,7 +3,7 @@
"repo": "https://github.com/0lp/0lp.github.io",
"owner": {
"username": "0lp",
"email": "not.a.nerd0005@gmail.com",
"email": "not.a.nerd0005@gmail.com"
},
"record": {
"CNAME": "0lp.github.io"
+11
View File
@@ -0,0 +1,11 @@
{
"description": "zplusfour's personal developer website",
"repo": "https://github.com/zplusfour",
"owner": {
"username": "zplusfour",
"email": "zgjoniur@gmail.com"
},
"record": {
"CNAME": "zplusfour.repl.co"
}
}
+4 -2
View File
@@ -74,15 +74,16 @@ upload_acme_file() {
}
reset_acme() {
update_record remove A 'www.is-a.dev' "68.65.123.44";
update_record remove A 'www' "68.65.123.44";
sleep 1;
update_record add CNAME 'www.is-a.dev' "is-a-dev.github.io";
update_record add CNAME 'www' "is-a-dev.github.io";
}
case "$1" in
check)
echo "TXT record:: $(dig +noall +answer _acme-challenge.is-a.dev TXT | awk '{print $5}')";
;;
config_www) update_www_record ;;
acme_txt) update_acme_txt_record "$2" ;;
acme_file) upload_acme_file "$2" "$3" ;;
cert) generate_certificate ;;
@@ -95,6 +96,7 @@ esac
# Run ./scripts/certbot.sh cert
# Run ./scripts/certbot.sh acme_txt "<key>"
# Run ./scripts/certbot.sh acme_file "<key>" "<value>"
# Run ./scripts/certbot.sh config_www
# Upload cert.pem and privkey.pem contents to SSL > Manage SSL Sites
# Run ./scripts/certbot.sh reset