docker-compose environment for the entire v.st system https://v.st/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
env/nginx/certbot-renew

21 lines
490 B

#!/bin/bash
source ../env.production
source ./env.production
domain_args="-d $DOMAIN_NAME,$KEYCLOAK_HOSTNAME,$HEDGEDOC_HOSTNAME,$MASTODON_HOSTNAME,$NEXTCLOUD_HOSTNAME"
rsa_key_size=2048
set -x
docker-compose run --rm certbot \
certonly --webroot -w /var/www/certbot \
$staging_arg \
--email "admin@$DOMAIN_NAME" \
--rsa-key-size $rsa_key_size \
--agree-tos \
--force-renewal \
$domain_args \
|| die "unable to renew!"
docker-compose exec nginx nginx -s reload