From 3c3cc47d3212b68de3168afc4872f77db02b5ec4 Mon Sep 17 00:00:00 2001 From: MrMeeb Date: Wed, 21 Jun 2023 17:32:17 +0000 Subject: [PATCH] add CLOUDFLARE_TOKEN to env vars --- Dockerfile | 1 + README.md | 2 ++ root/container-init.sh | 1 + 3 files changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index 2437037..d7c1b83 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,6 +20,7 @@ ENV GENERATE_DHPARAM=true ENV TZ=UTC ENV PUID=1000 ENV PGID=1000 +ENV CLOUDFLARE_TOKEN= #Get required packages RUN apk update && apk add curl bash python3 py3-virtualenv procps tzdata nano shadow xz busybox-suid openssl diff --git a/README.md b/README.md index 01f1e2c..c6cdc14 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,7 @@ Dockerised Certbot that utilises cron to schedule creating and renewing SSL cert docker run -d --name certbot \ -e EMAIL=admin@domain.com \ -e DOMAINS=domain.com \ + -e CLOUDFLARE_TOKEN=123abc -v /docker/certbot-cron:/config \ git.mrmeeb.stream/mrmeeb/certbot-cron:latest ``` @@ -35,6 +36,7 @@ services: environment: - EMAIL=admin@domain.com - DOMAINS=domain.com,*.domain.com + - CLOUDFLARE_TOKEN=123abc ``` ## Environment Variables: diff --git a/root/container-init.sh b/root/container-init.sh index 7b4acdf..1f4fe54 100644 --- a/root/container-init.sh +++ b/root/container-init.sh @@ -26,6 +26,7 @@ INTERVAL=${INTERVAL} STAGING=${STAGING} PROPOGATION_TIME=${PROPOGATION_TIME} GENERATE_DHPARAM=${GENERATE_DHPARAM} +CLOUDFLARE_TOKEN=${CLOUDFLARE_TOKEN} ---------------------------------------------------------------------- "