Fix when using dns-01 challenge
This commit is contained in:
parent
bc01e4e772
commit
e8566b245a
|
@ -20,7 +20,7 @@ main(){
|
||||||
|
|
||||||
if [ "${CHALLENGE}" = "http-01" ]; then
|
if [ "${CHALLENGE}" = "http-01" ]; then
|
||||||
LEGO_OPTS="${LEGO_OPTS} --http --http.port 127.0.0.1:${ACME_HTTP_PORT}"
|
LEGO_OPTS="${LEGO_OPTS} --http --http.port 127.0.0.1:${ACME_HTTP_PORT}"
|
||||||
elif [ "${ACME_CHALLENGE}" = "dns-01" ]; then
|
elif [ "${CHALLENGE}" = "dns-01" ]; then
|
||||||
LEGO_OPTS="${LEGO_OPTS} --dns $(printenv ACME_${IDX}_DNS_PROVIDER)"
|
LEGO_OPTS="${LEGO_OPTS} --dns $(printenv ACME_${IDX}_DNS_PROVIDER)"
|
||||||
export $(printenv ACME_${IDX}_DNS_KEY_ENV)=$(printenv ACME_${IDX}_DNS_KEY_VALUE)
|
export $(printenv ACME_${IDX}_DNS_KEY_ENV)=$(printenv ACME_${IDX}_DNS_KEY_VALUE)
|
||||||
if printenv ACME_${IDX}_DNS_RESOLVERS; then
|
if printenv ACME_${IDX}_DNS_RESOLVERS; then
|
||||||
|
|
|
@ -5,7 +5,7 @@ acme:
|
||||||
instance: acme-to-vault
|
instance: acme-to-vault
|
||||||
|
|
||||||
# The Docker image to use
|
# The Docker image to use
|
||||||
image: danielberteaud/acme-to-vault:23.09-1
|
image: danielberteaud/acme-to-vault:23.10-1
|
||||||
|
|
||||||
# If a cron expression is defined, the service will stay running and renew certs.
|
# If a cron expression is defined, the service will stay running and renew certs.
|
||||||
# If an empty string, the container will exit after running once
|
# If an empty string, the container will exit after running once
|
||||||
|
|
Loading…
Reference in New Issue
Block a user