From 36a492db0d2a3c0afc5c82116f6aadae908cf36f Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sun, 26 Sep 2021 13:25:33 +0530 Subject: [PATCH] chore: adds convinience aliases for docker + removes acme challenge on reset --- package.json | 5 ++++- scripts/certbot.sh | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 210d2b343..e79c3126e 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/scripts/certbot.sh b/scripts/certbot.sh index 78a74f513..34e6fccdb 100755 --- a/scripts/certbot.sh +++ b/scripts/certbot.sh @@ -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 "" # Run ./scripts/certbot.sh acme_file "" "" # 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