budibase/hosting/letsencrypt/certificate-renew.sh

14 lines
314 B
Bash
Raw Permalink Normal View History

2022-06-22 14:38:33 +02:00
#!/bin/bash
CUSTOM_DOMAIN="$1"
if [[ ! -z "${CUSTOM_DOMAIN}" ]]; then
certbot certonly --webroot --webroot-path="/var/www/html" \
--register-unsafely-without-email \
--domains $CUSTOM_DOMAIN \
--rsa-key-size 4096 \
--agree-tos \
--force-renewal
nginx -s reload
2022-06-22 15:38:45 +02:00
fi