Add certificate config and docs

This commit is contained in:
Dana Lambert 2021-11-29 10:16:24 +13:00
parent 2b1c6cd49f
commit 687a256fff
5 changed files with 76 additions and 9 deletions

10
dev
View file

@ -123,6 +123,16 @@ cmd_stop_production() {
docker-compose -f docker-compose.production.yaml stop --remove-orphans
}
cmd_stop_production() {
docker-compose -f docker-compose.production.yaml stop --remove-orphans
}
cmd_renew_certifcate() {
cmd_stop_production
sudo docker run -i --rm --name certbot -p 443:443 -p 80:80 -v /etc/letsencrypt:/etc/letsencrypt/ certbot/certbot renew --dry-run -d $BASE_URL --logs-dir /etc/letsencrypt/logs
cmd_start_production
}
# Run the command
cmd="$1"
"cmd_$cmd" "$@"