Skip to content

Commit 0de67cc

Browse files
committed
Add godaddy and porkbun dns plugins
Also add missing python packages for dns plugins that are already supported
1 parent 9a05528 commit 0de67cc

File tree

7 files changed

+24
-3
lines changed

7 files changed

+24
-3
lines changed

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ RUN \
117117
certbot-dns-do \
118118
certbot-dns-domeneshop \
119119
certbot-dns-dynu \
120+
certbot-dns-gehirn \
121+
certbot-dns-godaddy \
120122
certbot-dns-google \
121123
certbot-dns-he \
122124
certbot-dns-hetzner \
@@ -130,8 +132,10 @@ RUN \
130132
certbot-dns-njalla \
131133
certbot-dns-nsone \
132134
certbot-dns-ovh \
135+
certbot-dns-porkbun \
133136
certbot-dns-rfc2136 \
134137
certbot-dns-route53 \
138+
certbot-dns-sakuracloud \
135139
certbot-dns-standalone \
136140
certbot-dns-transip \
137141
certbot-dns-vultr \

Dockerfile.aarch64

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ RUN \
117117
certbot-dns-do \
118118
certbot-dns-domeneshop \
119119
certbot-dns-dynu \
120+
certbot-dns-gehirn \
121+
certbot-dns-godaddy \
120122
certbot-dns-google \
121123
certbot-dns-he \
122124
certbot-dns-hetzner \
@@ -130,8 +132,10 @@ RUN \
130132
certbot-dns-njalla \
131133
certbot-dns-nsone \
132134
certbot-dns-ovh \
135+
certbot-dns-porkbun \
133136
certbot-dns-rfc2136 \
134137
certbot-dns-route53 \
138+
certbot-dns-sakuracloud \
135139
certbot-dns-standalone \
136140
certbot-dns-transip \
137141
certbot-dns-vultr \

Dockerfile.armhf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ RUN \
117117
certbot-dns-do \
118118
certbot-dns-domeneshop \
119119
certbot-dns-dynu \
120+
certbot-dns-gehirn \
121+
certbot-dns-godaddy \
120122
certbot-dns-google \
121123
certbot-dns-he \
122124
certbot-dns-hetzner \
@@ -130,8 +132,10 @@ RUN \
130132
certbot-dns-njalla \
131133
certbot-dns-nsone \
132134
certbot-dns-ovh \
135+
certbot-dns-porkbun \
133136
certbot-dns-rfc2136 \
134137
certbot-dns-route53 \
138+
certbot-dns-sakuracloud \
135139
certbot-dns-standalone \
136140
certbot-dns-transip \
137141
certbot-dns-vultr \

readme-vars.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ opt_param_usage_include_env: true
5151
opt_param_env_vars:
5252
- { env_var: "SUBDOMAINS", env_value: "www,", desc: "Subdomains you'd like the cert to cover (comma separated, no spaces) ie. `www,ftp,cloud`. For a wildcard cert, set this _exactly_ to `wildcard` (wildcard cert is available via `dns` and `duckdns` validation only)" }
5353
- { env_var: "CERTPROVIDER", env_value: "", desc: "Optionally define the cert provider. Set to `zerossl` for ZeroSSL certs (requires existing [ZeroSSL account](https://app.zerossl.com/signup) and the e-mail address entered in `EMAIL` env var). Otherwise defaults to Let's Encrypt." }
54-
- { env_var: "DNSPLUGIN", env_value: "cloudflare", desc: "Required if `VALIDATION` is set to `dns`. Options are `acmedns`,`aliyun`, `azure`, `cloudflare`, `cloudxns`, `cpanel`, `desec`, `digitalocean`, `directadmin`, `dnsimple`, `dnsmadeeasy`, `dnspod`, `do`, `domeneshop`, `dynu`, `gandi`, `gehirn`, `google`, `he`, `hetzner`, `infomaniak`, `inwx`, `ionos`, `linode`, `loopia`, `luadns`, `netcup`, `njalla`, `nsone`, `ovh`, `rfc2136`, `route53`, `sakuracloud`, `standalone`, `transip` and `vultr`. Also need to enter the credentials into the corresponding ini (or json for some plugins) file under `/config/dns-conf`." }
54+
- { env_var: "DNSPLUGIN", env_value: "cloudflare", desc: "Required if `VALIDATION` is set to `dns`. Options are `acmedns`, `aliyun`, `azure`, `cloudflare`, `cloudxns`, `cpanel`, `desec`, `digitalocean`, `directadmin`, `dnsimple`, `dnsmadeeasy`, `dnspod`, `do`, `domeneshop`, `dynu`, `gandi`, `gehirn`, `godaddy`, `google`, `he`, `hetzner`, `infomaniak`, `inwx`, `ionos`, `linode`, `loopia`, `luadns`, `netcup`, `njalla`, `nsone`, `ovh`, `porkbun`, `rfc2136`, `route53`, `sakuracloud`, `standalone`, `transip`, and `vultr`. Also need to enter the credentials into the corresponding ini (or json for some plugins) file under `/config/dns-conf`." }
5555
- { env_var: "PROPAGATION", env_value: "", desc: "Optionally override (in seconds) the default propagation time for the dns plugins." }
5656
- { env_var: "DUCKDNSTOKEN", env_value: "", desc: "Required if `VALIDATION` is set to `duckdns`. Retrieve your token from https://www.duckdns.org" }
5757
- { env_var: "EMAIL", env_value: "", desc: "Optional e-mail address used for cert expiration notifications (Required for ZeroSSL)." }
@@ -155,6 +155,7 @@ app_setup_nginx_reverse_proxy_block: ""
155155

156156
# changelog
157157
changelogs:
158+
- { date: "04.10.22:", desc: "Add godaddy and porkbun dns plugins." }
158159
- { date: "03.10.22:", desc: "Add default_server back to default site conf's https listen." }
159160
- { date: "22.09.22:", desc: "Added support for DO DNS validation." }
160161
- { date: "22.09.22:", desc: "Added certbot-dns-acmedns for DNS01 validation." }

root/defaults/dns-conf/godaddy.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Instructions: https://github.com/miigotu/certbot-dns-godaddy
2+
# Replace with your values
3+
dns_godaddy_secret = 0123456789abcdef0123456789abcdef01234567
4+
dns_godaddy_key = abcdef0123456789abcdef01234567abcdef0123

root/defaults/dns-conf/porkbun.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Instructions: https://github.com/infinityofspace/certbot_dns_porkbun
2+
# Replace with your values
3+
dns_porkbun_key=<your-porkbun-api-key>
4+
dns_porkbun_secret=<your-porkbun-api-secret>

root/etc/cont-init.d/50-certbot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ cp -n /defaults/dns-conf/* /config/dns-conf/
2828
chown -R abc:abc /config/dns-conf
2929

3030
# check to make sure DNSPLUGIN is selected if dns validation is used
31-
if [[ "$VALIDATION" = "dns" ]] && [[ ! "$DNSPLUGIN" =~ ^(acmedns|aliyun|azure|cloudflare|cloudxns|cpanel|desec|digitalocean|directadmin|dnsimple|dnsmadeeasy|dnspod|do|domeneshop|dynu|gandi|gehirn|google|he|hetzner|infomaniak|inwx|ionos|linode|loopia|luadns|netcup|njalla|nsone|ovh|rfc2136|route53|sakuracloud|standalone|transip|vultr)$ ]]; then
31+
if [[ "$VALIDATION" = "dns" ]] && [[ ! "$DNSPLUGIN" =~ ^(acmedns|aliyun|azure|cloudflare|cloudxns|cpanel|desec|digitalocean|directadmin|dnsimple|dnsmadeeasy|dnspod|do|domeneshop|dynu|gandi|gehirn|godaddy|google|he|hetzner|infomaniak|inwx|ionos|linode|loopia|luadns|netcup|njalla|nsone|ovh|porkbun|rfc2136|route53|sakuracloud|standalone|transip|vultr)$ ]]; then
3232
echo "Please set the DNSPLUGIN variable to a valid plugin name. See docker info for more details."
3333
sleep infinity
3434

@@ -140,7 +140,7 @@ if [ "$VALIDATION" = "dns" ]; then
140140
elif [[ "$DNSPLUGIN" =~ ^(google)$ ]]; then
141141
if [ -n "$PROPAGATION" ];then PROPAGATIONPARAM="--dns-${DNSPLUGIN}-propagation-seconds ${PROPAGATION}"; fi
142142
PREFCHAL="--dns-${DNSPLUGIN} --dns-${DNSPLUGIN}-credentials /config/dns-conf/${DNSPLUGIN}.json ${PROPAGATIONPARAM}"
143-
elif [[ "$DNSPLUGIN" =~ ^(aliyun|desec|dnspod|do|domeneshop|dynu|he|hetzner|infomaniak|inwx|ionos|loopia|netcup|njalla|transip|vultr)$ ]]; then
143+
elif [[ "$DNSPLUGIN" =~ ^(aliyun|desec|dnspod|do|domeneshop|dynu|godaddy|he|hetzner|infomaniak|inwx|ionos|loopia|netcup|njalla|porkbun|transip|vultr)$ ]]; then
144144
if [ -n "$PROPAGATION" ];then PROPAGATIONPARAM="--dns-${DNSPLUGIN}-propagation-seconds ${PROPAGATION}"; fi
145145
PREFCHAL="-a dns-${DNSPLUGIN} --dns-${DNSPLUGIN}-credentials /config/dns-conf/${DNSPLUGIN}.ini ${PROPAGATIONPARAM}"
146146
elif [[ "$DNSPLUGIN" =~ ^(standalone)$ ]]; then

0 commit comments

Comments
 (0)