Skip to content
This repository was archived by the owner on Jan 6, 2021. It is now read-only.

Commit 5d7c082

Browse files
committed
add aliyun dns
1 parent b50ef60 commit 5d7c082

File tree

5 files changed

+11
-2
lines changed

5 files changed

+11
-2
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ RUN \
109109
certbot-dns-rfc2136 \
110110
certbot-dns-route53 \
111111
certbot-dns-transip \
112+
certbot-dns-aliyun \
112113
certbot-plugin-gandi \
113114
cryptography \
114115
requests && \

Dockerfile.aarch64

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ RUN \
109109
certbot-dns-rfc2136 \
110110
certbot-dns-route53 \
111111
certbot-dns-transip \
112+
certbot-dns-aliyun \
112113
certbot-plugin-gandi \
113114
cryptography \
114115
requests && \

Dockerfile.armhf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ RUN \
109109
certbot-dns-rfc2136 \
110110
certbot-dns-route53 \
111111
certbot-dns-transip \
112+
certbot-dns-aliyun \
112113
certbot-plugin-gandi \
113114
cryptography \
114115
requests && \

root/defaults/dns-conf/aliyun.ini

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Obtain Aliyun RAM AccessKey
2+
# https://ram.console.aliyun.com/
3+
# And ensure your RAM account has AliyunDNSFullAccess permission.
4+
5+
certbot_dns_aliyun:dns_aliyun_access_key = 12345678
6+
certbot_dns_aliyun:dns_aliyun_access_key_secret = 1234567890abcdef1234567890abcdef

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ cp /config/fail2ban/jail.local /etc/fail2ban/jail.local
7676
cp /defaults/ldap.conf /config/nginx/ldap.conf
7777

7878
# check to make sure DNSPLUGIN is selected if dns validation is used
79-
[[ "$VALIDATION" = "dns" ]] && [[ ! "$DNSPLUGIN" =~ ^(cloudflare|cloudxns|cpanel|digitalocean|dnsimple|dnsmadeeasy|domeneshop|gandi|google|inwx|linode|luadns|nsone|ovh|rfc2136|route53|transip)$ ]] && \
79+
[[ "$VALIDATION" = "dns" ]] && [[ ! "$DNSPLUGIN" =~ ^(cloudflare|cloudxns|cpanel|digitalocean|dnsimple|dnsmadeeasy|domeneshop|gandi|google|inwx|linode|luadns|nsone|ovh|rfc2136|route53|transip|aliyun)$ ]] && \
8080
echo "Please set the DNSPLUGIN variable to a valid plugin name. See docker info for more details." && \
8181
sleep infinity
8282

@@ -180,7 +180,7 @@ if [ "$VALIDATION" = "dns" ]; then
180180
PREFCHAL="-a certbot-plugin-${DNSPLUGIN}:dns --certbot-plugin-${DNSPLUGIN}:dns-credentials /config/dns-conf/${DNSPLUGIN}.ini --manual-public-ip-logging-ok"
181181
elif [[ "$DNSPLUGIN" =~ ^(google)$ ]]; then
182182
PREFCHAL="--dns-${DNSPLUGIN} --dns-${DNSPLUGIN}-credentials /config/dns-conf/${DNSPLUGIN}.json --manual-public-ip-logging-ok --dns-${DNSPLUGIN}-propagation-seconds 120"
183-
elif [[ "$DNSPLUGIN" =~ ^(domeneshop|inwx|transip)$ ]]; then
183+
elif [[ "$DNSPLUGIN" =~ ^(domeneshop|inwx|transip|aliyun)$ ]]; then
184184
PREFCHAL="-a certbot-dns-${DNSPLUGIN}:dns-${DNSPLUGIN} --certbot-dns-${DNSPLUGIN}:dns-${DNSPLUGIN}-credentials /config/dns-conf/${DNSPLUGIN}.ini --manual-public-ip-logging-ok --certbot-dns-${DNSPLUGIN}:dns-${DNSPLUGIN}-propagation-seconds 180"
185185
else
186186
PREFCHAL="--dns-${DNSPLUGIN} --dns-${DNSPLUGIN}-credentials /config/dns-conf/${DNSPLUGIN}.ini --manual-public-ip-logging-ok"

0 commit comments

Comments
 (0)