From f2c9addf0e2eb56d2af1165e5b8d705bda89c1fa Mon Sep 17 00:00:00 2001 From: Adrien Ferrand Date: Sun, 22 Apr 2018 15:46:16 +0200 Subject: [PATCH] Add LEXICON_PROVIDER_OPTIONS as an alternative way to environment variables in order to set provider options --- Dockerfile | 3 ++- files/authenticator.sh | 2 +- files/cleanup.sh | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 216f3c6d..05396826 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ ENV PATH /scripts:$PATH # Versioning ENV LEXICON_VERSION 2.2.1 -ENV CERTBOT_VERSION 0.22.2 +ENV CERTBOT_VERSION 0.23.0 # Let's Encrypt configuration ENV LETSENCRYPT_STAGING false @@ -15,6 +15,7 @@ ENV LETSENCRYPT_ACME_V1 false # Lexicon configuration ENV LEXICON_PROVIDER cloudflare +ENV LEXICON_PROVIDER_OPTIONS "" # Container specific configuration ENV PFX_EXPORT false diff --git a/files/authenticator.sh b/files/authenticator.sh index 6b1cd884..9a1e058a 100755 --- a/files/authenticator.sh +++ b/files/authenticator.sh @@ -1,6 +1,6 @@ #!/bin/sh set -e -lexicon $LEXICON_PROVIDER create $CERTBOT_DOMAIN TXT --name="_acme-challenge.$CERTBOT_DOMAIN." --content="$CERTBOT_VALIDATION" +lexicon $LEXICON_PROVIDER $LEXICON_PROVIDER_OPTIONS create $CERTBOT_DOMAIN TXT --name="_acme-challenge.$CERTBOT_DOMAIN." --content="$CERTBOT_VALIDATION" sleep ${LEXICON_SLEEP_TIME:-30} diff --git a/files/cleanup.sh b/files/cleanup.sh index ec6fd6c7..900c2421 100755 --- a/files/cleanup.sh +++ b/files/cleanup.sh @@ -1,4 +1,4 @@ #!/bin/sh set -e -lexicon $LEXICON_PROVIDER delete $CERTBOT_DOMAIN TXT --name="_acme-challenge.$CERTBOT_DOMAIN." --content="$CERTBOT_VALIDATION" +lexicon $LEXICON_PROVIDER $LEXICON_PROVIDER_OPTIONS delete $CERTBOT_DOMAIN TXT --name="_acme-challenge.$CERTBOT_DOMAIN." --content="$CERTBOT_VALIDATION"