25 Commits

Author SHA1 Message Date
53935f50a1 Merge pull request '1.0.0' (#4) from develop into master
Some checks failed
continuous-integration/drone/tag Build is failing
Reviewed-on: #4
2023-06-21 18:20:15 +00:00
a079be7a7c make CLOUDFLARE_TOKEN override instead of append 2023-06-21 17:48:29 +00:00
daf09c2688 add CLOUDFLARE_TOKEN to env vars 2023-06-21 17:32:17 +00:00
12c5cc0b26 add build dependencies for arm 2023-06-20 22:14:44 +00:00
afe5564d3e update readme 2023-06-20 21:27:42 +00:00
e8746b41f8 update build logic 2023-06-20 21:27:36 +00:00
e98549ced0 add goreleaser 2023-06-20 21:27:27 +00:00
df6719d802 change to s6 2023-06-20 21:27:01 +00:00
da97eed84e change to alpine 2023-06-20 21:26:11 +00:00
bc046870b5 Update 'README.md' 2023-01-02 16:40:31 +00:00
51fb94b5d7 Update '.drone.yml' 2022-12-25 20:38:20 +00:00
e6afb009ea Update '.drone.yml' 2022-12-25 19:18:06 +00:00
6d4ca72071 Update 'README.md' 2022-12-25 19:09:13 +00:00
8b57c507cf Update 'README.md' 2022-12-25 19:07:54 +00:00
f4f8bfb64b Add '.drone.yml' 2022-12-25 18:50:54 +00:00
c8daded5b0 Update 'README.md' 2022-12-25 18:48:33 +00:00
6056a0bcd7 Update 'README.md' 2022-06-21 16:56:35 +00:00
d2999b8307 Prevented dhparams regenerating if they already exist 2022-06-21 11:58:46 +00:00
5a24a284d0 Formatting 2022-06-20 22:42:29 +00:00
c25786a930 Add GENERATE_DHPARAM 2022-06-20 22:41:27 +00:00
09bdaf819c Added PROPOGATION_TIME variable 2022-06-20 22:08:30 +00:00
1773f9d3ee Update 'README.md' 2022-06-19 17:11:20 +00:00
47d5a4aaaf Fix typo 2022-06-18 23:12:11 +00:00
85ec77a260 Formatting fix 2022-06-18 23:10:07 +00:00
afd88220aa first commit 2022-06-18 23:08:39 +00:00
4 changed files with 10 additions and 3 deletions

View File

@ -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
@ -40,8 +41,11 @@ ENV S6_BEHAVIOUR_IF_STAGE2_FAILS=2 S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 S6_VERBOSI
RUN python3 -m venv /app/certbot/ && /app/certbot/bin/pip install --upgrade pip
RUN /app/certbot/bin/pip install certbot certbot-dns-cloudflare && \
ln -s /app/certbot/bin/certbot /usr/bin/certbot
#Get required packages for building, build, then cleanup
RUN apk add --no-cache --virtual .deps gcc python3-dev libc-dev libffi-dev && \
/app/certbot/bin/pip install certbot certbot-dns-cloudflare && \
ln -s /app/certbot/bin/certbot /usr/bin/certbot &&\
apk del .deps
COPY root /

View File

@ -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:

View File

@ -41,7 +41,7 @@ if [ -n "$CLOUDFLARE_TOKEN" ]
then
echo "Cloudflare token is present"
echo "dns_cloudflare_api_token = $CLOUDFLARE_TOKEN" >> /config/.secrets/cloudflare.ini
echo "dns_cloudflare_api_token = $CLOUDFLARE_TOKEN" > /config/.secrets/cloudflare.ini
fi

View File

@ -26,6 +26,7 @@ INTERVAL=${INTERVAL}
STAGING=${STAGING}
PROPOGATION_TIME=${PROPOGATION_TIME}
GENERATE_DHPARAM=${GENERATE_DHPARAM}
CLOUDFLARE_TOKEN=${CLOUDFLARE_TOKEN}
----------------------------------------------------------------------
"