mirror of
https://github.com/sys-32Dev/register.git
synced 2026-08-08 20:06:34 +00:00
chore: adds convinience aliases for docker + removes acme challenge on reset
This commit is contained in:
@@ -5,7 +5,10 @@
|
||||
"scripts": {
|
||||
"test": "ENV=test jest",
|
||||
"lint": "eslint utils scripts domains --ext .json,.js",
|
||||
"publish-records": "node ./scripts/register-domains.js"
|
||||
"publish-records": "node ./scripts/register-domains.js",
|
||||
"dc": "docker-compose -p is-a-dev",
|
||||
"dc:start": "yarn dc up",
|
||||
"dc:shell": "yarn dc run dev /bin/bash"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
||||
@@ -89,6 +89,7 @@ reset_acme() {
|
||||
update_record remove A 'www' "68.65.123.44";
|
||||
sleep 1;
|
||||
update_record add CNAME 'www' "is-a-dev.github.io";
|
||||
update_record remove TXT '_acme-challenge' '';
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
@@ -109,6 +110,7 @@ esac
|
||||
# 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
|
||||
# cp -r /tmp/is-a-dev-whatever /tmp/is-a-dev-cert (not sure if needed but the directory disappeared once)
|
||||
# Upload cert.pem and privkey.pem (from config/live/is-a.dev/) contents to SSL > Manage SSL Sites
|
||||
# Run ./scripts/certbot.sh reset
|
||||
|
||||
|
||||
Reference in New Issue
Block a user