Skip to content

Commit

Permalink
Merge pull request #89 from sineverba/release-4.4.0
Browse files Browse the repository at this point in the history
Release 4.4.0
  • Loading branch information
sineverba authored Feb 4, 2021
2 parents c6a0cec + e7c02ee commit cce4a6c
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 4 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# 4.3.0
# 4.4.0
+ Remove force renew from Docker
+ Set force renew as environment variable

## 4.3.0
+ Remove Docker implementation (not completed)
+ Remove config folder (for old Docker)
+ Add Dockerfile
Expand Down
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ Inspired by
## Docker version

+ Pull from Docker Hub: `docker pull sineverba/cfhookbash`
+ Make a first run, it will create the correct directories and files:
+ Make a first run, it will auto-register and will create the correct directories and files:

```shell
$ docker run -it --rm -v $(pwd)/data:/app/dehydrated --name cfhookbash sineverba/cfhookbash:latest
Expand All @@ -151,3 +151,11 @@ $ docker run -it --rm -v $(pwd)/data:/app/dehydrated --name cfhookbash sineverba
$ docker run -it --rm -v $(pwd)/data:/app/dehydrated --name cfhookbash sineverba/cfhookbash:latest
```

+ To force renew, pass the `ENV VAR` `FORCE_RENEW=TRUE` (caps lock for TRUE)

```shell
$ docker run -it --rm -v $(pwd)/data:/app/dehydrated -e FORCE_RENEW=TRUE --name cfhookbash sineverba/cfhookbash:latest
```

+ If you launch docker with stage url, removing it LE blocks you, requesting to re-register. Simply delete the `data/accounts` folder and relaunch (2 times) the docker.

2 changes: 1 addition & 1 deletion docker/dehydrated/config
Original file line number Diff line number Diff line change
@@ -1 +1 @@
CA="https://acme-staging-v02.api.letsencrypt.org/directory"
#CA="https://acme-staging-v02.api.letsencrypt.org/directory"
9 changes: 8 additions & 1 deletion docker/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,11 @@ if [ ! -d "$ACCOUNTS_DIR" ]; then
./app/dehydrated/dehydrated --register --accept-terms
exit
fi
./app/dehydrated/dehydrated -c -t dns-01 -k '/app/dehydrated/hook.sh' -x

RENEW_OPT=
if [ "$FORCE_RENEW" == TRUE ]; then
RENEW_OPT=-x
fi
./app/dehydrated/dehydrated -c -t dns-01 -k '/app/dehydrated/hook.sh' $RENEW_OPT

exec "$@"

0 comments on commit cce4a6c

Please sign in to comment.