mirror of
https://github.com/linuxserver/docker-swag.git
synced 2026-02-09 14:34:14 +09:00
Merge pull request #248 from j-brewer/master
Added acmedns validation plugin for certbot
This commit is contained in:
9
root/defaults/dns-conf/acmedns-registration.json
Normal file
9
root/defaults/dns-conf/acmedns-registration.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"yourdomain.com": {
|
||||
"username":"yourusername",
|
||||
"password":"yourpassword",
|
||||
"fulldomain":"<guid>.acme.yourdomain.com",
|
||||
"subdomain":"<guid>",
|
||||
"allowfrom":[]
|
||||
}
|
||||
}
|
||||
5
root/defaults/dns-conf/acmedns.ini
Normal file
5
root/defaults/dns-conf/acmedns.ini
Normal file
@@ -0,0 +1,5 @@
|
||||
# See https://pypi.org/project/certbot-dns-acmedns/
|
||||
# https://github.com/joohoi/acme-dns
|
||||
#
|
||||
dns_acmedns_api_url = http://your-acme-dns-server.example.com/
|
||||
dns_acmedns_registration_file = /config/dns-conf/acmedns-registration.json
|
||||
@@ -28,7 +28,7 @@ cp -n /defaults/dns-conf/* /config/dns-conf/
|
||||
chown -R abc:abc /config/dns-conf
|
||||
|
||||
# check to make sure DNSPLUGIN is selected if dns validation is used
|
||||
if [[ "$VALIDATION" = "dns" ]] && [[ ! "$DNSPLUGIN" =~ ^(aliyun|azure|cloudflare|cloudxns|cpanel|desec|digitalocean|directadmin|dnsimple|dnsmadeeasy|dnspod|domeneshop|dynu|gandi|gehirn|google|he|hetzner|infomaniak|inwx|ionos|linode|loopia|luadns|netcup|njalla|nsone|ovh|rfc2136|route53|sakuracloud|standalone|transip|vultr)$ ]]; then
|
||||
if [[ "$VALIDATION" = "dns" ]] && [[ ! "$DNSPLUGIN" =~ ^(acmedns|aliyun|azure|cloudflare|cloudxns|cpanel|desec|digitalocean|directadmin|dnsimple|dnsmadeeasy|dnspod|domeneshop|dynu|gandi|gehirn|google|he|hetzner|infomaniak|inwx|ionos|linode|loopia|luadns|netcup|njalla|nsone|ovh|rfc2136|route53|sakuracloud|standalone|transip|vultr)$ ]]; then
|
||||
echo "Please set the DNSPLUGIN variable to a valid plugin name. See docker info for more details."
|
||||
sleep infinity
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user