|
1 | 1 | Cloudflare dns-01 challenge hook bash for dehydrated |
2 | 2 | ==================================================== |
3 | 3 |
|
| 4 | +| CD / CI | | |
| 5 | +| --------- | --------- | |
| 6 | +| Semaphore CI | [](https://sineverba.semaphoreci.com/projects/cfhookbash) | |
| 7 | + |
4 | 8 | **If you like this project, or use it, please, star it!** |
5 | 9 |
|
6 | 10 | Cloudflare Bash hook for [dehydrated](https://github.com/lukas2511/dehydrated). |
7 | 11 |
|
8 | | -| CI / CD | Status | |
9 | | -| ------- | ------ | |
10 | | -| Travis | [](https://travis-ci.com/sineverba/cfhookbash) | |
11 | | -| Docker | [](https://microbadger.com/images/sineverba/cfhookbash "Get your own image badge on microbadger.com") | |
12 | 12 |
|
13 | 13 | ## Why Cloudflare? What is this script? |
14 | 14 |
|
@@ -136,28 +136,18 @@ Inspired by |
136 | 136 | + [https://www.splitbrain.org/blog/2017-08/10-homeassistant_duckdns_letsencrypt](https://www.splitbrain.org/blog/2017-08/10-homeassistant_duckdns_letsencrypt) |
137 | 137 | + [https://github.com/kappataumu/letsencrypt-Cloudflare-hook](https://github.com/kappataumu/letsencrypt-Cloudflare-hook) |
138 | 138 |
|
139 | | ----------------------------------------------------- |
140 | | - |
141 | | -### Docker mode - beware! Not stable and under development! |
142 | | -+ Make a new dir (e.g. `mkdir -p /home/$USER/cfhookbashdocker`) |
143 | | -+ Create a `certs` folder |
144 | | -+ Create one or more folders with name of domain in `certs` (e.g. `certs/example.com` and `certs/test.example.com`) |
145 | | -+ Create a `config` folder |
146 | | -+ Create a `config.sh` file in `/config/` and fill it (see below how to get data) |
147 | | -+ Create a `domains.txt` file in `/config/` and insert a domain for every line |
148 | | -+ Make a first run in stage mode: create a `config` file under `/config` with this content `CA="https://acme-staging-v02.api.letsencrypt.org/directory"` |
| 139 | +## Docker version |
149 | 140 |
|
150 | | -Run |
| 141 | ++ Pull from Docker Hub: `docker pull sineverba/cfhookbash` |
| 142 | ++ Make a first run, it will create the correct directories and files: |
151 | 143 |
|
152 | | -``` shell |
153 | | -docker run -it \ |
154 | | - -v ${PWD}/certs:/certs \ |
155 | | - -v ${PWD}/config:/config \ |
156 | | - --name cfhookbash \ |
157 | | - sineverba/cfhookbash:latest |
| 144 | +```shell |
| 145 | +$ docker run -it --rm -v $(pwd)/data:/app/dehydrated --name cfhookbash sineverba/cfhookbash:latest |
158 | 146 | ``` |
| 147 | ++ Edit `data/config`, `data/config.sh` and `data/domains.txt` |
| 148 | ++ Rerun: |
159 | 149 |
|
160 | | -+ Certs will be available in `/certs` |
161 | | -+ Docker run a cronjob every minute |
| 150 | +```shell |
| 151 | +$ docker run -it --rm -v $(pwd)/data:/app/dehydrated --name cfhookbash sineverba/cfhookbash:latest |
| 152 | +``` |
162 | 153 |
|
163 | | -------------------------------------------------------- |
0 commit comments