From 14fef48ec8cdfbe8fb92824506918daf3c506475 Mon Sep 17 00:00:00 2001 From: Gilles Filippini Date: Thu, 17 Sep 2020 20:09:56 +0000 Subject: [PATCH] Add docs/DNS-mode-challenge.md --- docs/DNS-mode-challenge.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 docs/DNS-mode-challenge.md diff --git a/docs/DNS-mode-challenge.md b/docs/DNS-mode-challenge.md new file mode 100644 index 00000000..8701a930 --- /dev/null +++ b/docs/DNS-mode-challenge.md @@ -0,0 +1,37 @@ +## DNS mode challenge configuration + +To use DNS mode challenge, define `LETSENCRYPT_DNS_MODE` and `LETSENCRYPT_DNS_MODE_SETTINGS` environment variables in the client container: + + environment: + - LETSENCRYPT_DNS_MODE= + - LETSENCRYPT_DNS_MODE_SETTINGS=export = ... + +You find the `` by browsing the `acme.sh` `dnsapi` folder [1]. the variable must hold the script name without the `.sh` extension. + +[1] https://github.com/acmesh-official/acme.sh/tree/master/dnsapi + +Examples: + +* To use Gandi LiveDNS: + + - LETSENCRYPT_DNS_MODE=dns_gandi_livedns +* To use DuckDNS: + + - LETSENCRYPT_DNS_MODE=dns_duckdns + +To find about a provider's settings, read the comments provided at the begining of the related script. + +Example: + +* `dnsapi/dns_gandi_livedns.sh` has this comment: + + # Requires GANDI API KEY set in GANDI_LIVEDNS_KEY set as environment variable + Then the settings would be: + + - LETSENCRYPT_DNS_MODE_SETTINGS=export GANDI_LIVEDNS_KEY= +* `dnsapi/dns_duckdns.sh` has this comment: + + # export DuckDNS_Token="aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee" + Then the settings would be: + + - LETSENCRYPT_DNS_MODE_SETTINGS=export DuckDNS_Token=