mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-10-13 16:15:07 +00:00
Merge branch 'main' into main
This commit is contained in:
21 files changed
+212
-11
No files matched your search
+21
@@ -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"]
|
||||||
|
|
||||||
@@ -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.
|
**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?
|
## How do I register?
|
||||||
* Fork this project
|
* Fork this project
|
||||||
@@ -27,3 +29,6 @@ Please consider donating to help me keep this running forever!
|
|||||||
|
|
||||||
## License
|
## License
|
||||||
This project is under the [GPL-3.0](./LICENSE) 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
@@ -5,10 +5,12 @@ let
|
|||||||
nixPackages = with pkgs; [
|
nixPackages = with pkgs; [
|
||||||
nodejs-15_x
|
nodejs-15_x
|
||||||
yarn
|
yarn
|
||||||
dnsutils
|
docker-compose
|
||||||
certbot
|
#dnsutils
|
||||||
|
#certbot
|
||||||
];
|
];
|
||||||
in pkgs.stdenv.mkDerivation {
|
in
|
||||||
|
pkgs.stdenv.mkDerivation {
|
||||||
name = "env";
|
name = "env";
|
||||||
buildInputs = nixPackages;
|
buildInputs = nixPackages;
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
version: '3'
|
||||||
|
services:
|
||||||
|
dev:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: ./Dockerfile
|
||||||
|
volumes:
|
||||||
|
- ./:/opt/app/code
|
||||||
@@ -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`.
|
||||||
|
|
||||||
@@ -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.
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"owner": {
|
||||||
|
"username": "aanthr0",
|
||||||
|
"email": "anthromadayt@gmail.com"
|
||||||
|
},
|
||||||
|
"record": {
|
||||||
|
"URL": "http://bh006.bluefoxhost.com:8215"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"description": "Just my personal website",
|
||||||
|
"repo": "https://github.com/AozoraDev/AozoraDev.github.io",
|
||||||
|
"owner": {
|
||||||
|
"username": "AozoraDev",
|
||||||
|
"email": "aozoradeveloper@gmail.com"
|
||||||
|
},
|
||||||
|
"record": {
|
||||||
|
"CNAME": "aozoradev.github.io"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -5,6 +5,6 @@
|
|||||||
},
|
},
|
||||||
"description": "Portfolio",
|
"description": "Portfolio",
|
||||||
"record": {
|
"record": {
|
||||||
"CNAME": "89a354d3-9624-4f42-8f7c-a7e2db1be2cf.repl.co"
|
"CNAME": "coolcodersj.github.io"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"description": "Emmaffle's Site - memorable redirect",
|
||||||
|
"repo": "https://github.com/wafflecoffee/waffle.coffee",
|
||||||
|
"owner": {
|
||||||
|
"username": "wafflecoffee",
|
||||||
|
"email": "emma@waffle.coffee"
|
||||||
|
},
|
||||||
|
"record": {
|
||||||
|
"CNAME": "waffle.coffee"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"description": "FSanchir",
|
||||||
|
"repo": "https://github.com/fsanchir/fsanchir.github.io",
|
||||||
|
"owner": {
|
||||||
|
"username": "fsanchir",
|
||||||
|
"email": "fsanchir@fsip.ml",
|
||||||
|
"twitter": "None!"
|
||||||
|
},
|
||||||
|
"record": {
|
||||||
|
"CNAME": "fsanchir.github.io"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"description": "TheBotlyNoob's development website",
|
||||||
|
"repo": "https://github.com/TheBotlyNoob/TheBotlyNoob.github.io",
|
||||||
|
"owner": {
|
||||||
|
"username": "TheBotlyNoob",
|
||||||
|
"email": "TheBotlyNoob@gmail.com"
|
||||||
|
},
|
||||||
|
"record": {
|
||||||
|
"CNAME": "aebaff7b-d584-47c7-8d4d-ee68123d614b.repl.co"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
"repo": "https://github.com/0lp/0lp.github.io",
|
"repo": "https://github.com/0lp/0lp.github.io",
|
||||||
"owner": {
|
"owner": {
|
||||||
"username": "0lp",
|
"username": "0lp",
|
||||||
"email": "not.a.nerd0005@gmail.com",
|
"email": "not.a.nerd0005@gmail.com"
|
||||||
},
|
},
|
||||||
"record": {
|
"record": {
|
||||||
"CNAME": "0lp.github.io"
|
"CNAME": "0lp.github.io"
|
||||||
+2
-2
@@ -6,6 +6,6 @@
|
|||||||
"email": "raksixoffical@gmail.com"
|
"email": "raksixoffical@gmail.com"
|
||||||
},
|
},
|
||||||
"record": {
|
"record": {
|
||||||
"CNAME": "raksix-blog.tk"
|
"CNAME": "protected-pumpkin-ic8p7okaxzxl67htg0pmv95w.herokudns.com"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"description": "api for my bot",
|
||||||
|
"repo": "https://github.com/brawlie/todo",
|
||||||
|
"owner": {
|
||||||
|
"username": "brawlie",
|
||||||
|
"email": "tojoeleeofficial@gmail.com"
|
||||||
|
},
|
||||||
|
"record": {
|
||||||
|
"CNAME": "ea156b14-963b-49f8-9d6e-f3fff240029c.repl.co"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"description": "My personal portfolio",
|
||||||
|
"repo": "https://github.com/tovade",
|
||||||
|
"owner": {
|
||||||
|
"username": "tovade",
|
||||||
|
"email": "support@tovade.ml"
|
||||||
|
},
|
||||||
|
"record": {
|
||||||
|
"CNAME": "tovade.ml"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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
@@ -74,15 +74,16 @@ upload_acme_file() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
reset_acme() {
|
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;
|
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
|
case "$1" in
|
||||||
check)
|
check)
|
||||||
echo "TXT record:: $(dig +noall +answer _acme-challenge.is-a.dev TXT | awk '{print $5}')";
|
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_txt) update_acme_txt_record "$2" ;;
|
||||||
acme_file) upload_acme_file "$2" "$3" ;;
|
acme_file) upload_acme_file "$2" "$3" ;;
|
||||||
cert) generate_certificate ;;
|
cert) generate_certificate ;;
|
||||||
@@ -95,6 +96,7 @@ esac
|
|||||||
# Run ./scripts/certbot.sh cert
|
# Run ./scripts/certbot.sh cert
|
||||||
# Run ./scripts/certbot.sh acme_txt "<key>"
|
# Run ./scripts/certbot.sh acme_txt "<key>"
|
||||||
# Run ./scripts/certbot.sh acme_file "<key>" "<value>"
|
# 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
|
# Upload cert.pem and privkey.pem contents to SSL > Manage SSL Sites
|
||||||
# Run ./scripts/certbot.sh reset
|
# Run ./scripts/certbot.sh reset
|
||||||
|
|
||||||
Reference in new issue
Block a user