Add certificate config and docs
This commit is contained in:
parent
2b1c6cd49f
commit
687a256fff
5 changed files with 76 additions and 9 deletions
10
dev
10
dev
|
@ -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" "$@"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue