Replace DO stuff with GCP equivalents

This commit is contained in:
William Brawner 2021-11-24 13:46:37 -07:00
parent 1a34fcba2d
commit e62fe91e9e
4 changed files with 9 additions and 9 deletions

View file

@ -1,7 +1,7 @@
FROM certbot/dns-digitalocean:latest
FROM certbot/dns-google:latest
COPY new-domain /usr/bin/new-domain
COPY renew /etc/periodic/monthly/renew
ENTRYPOINT /usr/sbin/crond -f
ENTRYPOINT /usr/sbin/crond -fd0

View file

@ -1,6 +1,6 @@
# Certbot DigitalOcean
# Certbot Google
This container wraps the dns-digitalocean certbot container with an additional
This container wraps the dns-google certbot container with an additional
script to help with requesting new domains: [new-domain](./new-domain).
When using, make sure to mount the following folders:
@ -9,5 +9,5 @@ Mount|Note
---|---
`/etc/letsencrypt`|Used to store requested certs
`/var/lib/letsencrypt`|Needed by LE
`/root/digitalocean.ini`|Needed for authentication with DO
`/root/google-cloud-key.json`|Needed for authentication with GCP

View file

@ -1,13 +1,13 @@
#!/usr/bin/env sh
INI_FILE="/root/digitalocean.ini"
KEY_FILE="/root/google-cloud-key.json"
if [ ! -f $INI_FILE ]; then
echo "ERROR: digitalocean credentials not present at $INI_FILE"
if [ ! -f $KEY_FILE ]; then
echo "ERROR: google cloud credentials not present at $KEY_FILE"
exit 1
fi
CMD="certbot certonly --dns-digitalocean --dns-digitalocean-credentials $INI_FILE --dns-digitalocean-propagation-seconds 90"
CMD="certbot certonly --dns-google --dns-google-credentials $KEY_FILE --dns-google-propagation-seconds 90"
for domain in "$@"; do
CMD="$CMD -d $domain"

0
renew Normal file → Executable file
View file