examples - add various certbot-dns examples

This commit is contained in:
bunkerity
2022-06-22 16:30:06 +02:00
parent a65606c369
commit ad091493c3
19 changed files with 442 additions and 3 deletions

View File

@@ -2,6 +2,6 @@ Please have a look at the [certbot-dns-ovh documentation](https://certbot-dns-ov
Procedure :
- Edit domains in the compose file
- Edit OVH infos (use https://eu.api.ovh.com/createToken/)
- Edit OVH credentials in ovh.ini file (generate using https://eu.api.ovh.com/createToken/)
- Run certbot only and wait for certificate to be generated : `docker-compose up -d mycertbot`
- When certificates are generated, run your services : `docker-compose up -d`

View File

@@ -12,7 +12,7 @@ if [ -f "/etc/letsencrypt/live/${first_domain}/fullchain.pem" ] ; then
certbot renew
else
echo "Asking for certificates ..."
certbot certonly --dns-ovh --dns-ovh-credentials /opt/ovh.ini --email "$EMAIL" --agree-tos -d "$DOMAINS"
certbot certonly -n --dns-ovh --dns-ovh-credentials /opt/ovh.ini --email "$EMAIL" --agree-tos -d "$DOMAINS"
fi
echo "Fixing permissions ..."