Skip to content

Commit

Permalink
Add LEXICON_PROVIDER_OPTIONS as an alternative way to environment var…
Browse files Browse the repository at this point in the history
…iables in order to set provider options
  • Loading branch information
Adrien Ferrand committed Apr 22, 2018
1 parent ec3bf7e commit f2c9add
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion files/authenticator.sh
Original file line number Diff line number Diff line change
@@ -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}
2 changes: 1 addition & 1 deletion files/cleanup.sh
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit f2c9add

Please sign in to comment.