|
| 1 | +Let's Encrypt DNS Challenge |
| 2 | +=========================== |
| 3 | + |
| 4 | +This repo contains only an image for an letsencrpyt container to use dns challenge with cloudflare. |
| 5 | + |
| 6 | +It uses the certbot image directly. |
| 7 | + |
| 8 | +## How to run this ? |
| 9 | + |
| 10 | +### With interactive mode for to decide if you want ip logging |
| 11 | + |
| 12 | +```bash |
| 13 | +docker run --rm -it -v "/etc/letsencrypt:/etc/letsencrypt" \ |
| 14 | + -v "/var/lib/letsencrypt:/var/lib/letsencrypt" \ |
| 15 | + -v "/var/log/letsencrypt:/var/log/letsencrypt" \ |
| 16 | + -e CERTBOT_DOMAIN=<domain> \ |
| 17 | + -e CLOUDFLARE_API_KEY=<cloudflare api key> \ |
| 18 | + -e CLOUDFLARE_EMAIL=<email address> \ |
| 19 | +solidnerd/letsencrpyt-dns:0.1.0 |
| 20 | +``` |
| 21 | + |
| 22 | +### Accept IP Logging |
| 23 | + |
| 24 | +```bash |
| 25 | +docker run --rm -it -v "/etc/letsencrypt:/etc/letsencrypt" \ |
| 26 | + -v "/var/lib/letsencrypt:/var/lib/letsencrypt" \ |
| 27 | + -v "/var/log/letsencrypt:/var/log/letsencrypt" \ |
| 28 | + -e CERTBOT_DOMAIN=<domain> \ |
| 29 | + -e CLOUDFLARE_API_KEY=<cloudflare api key> \ |
| 30 | + -e CLOUDFLARE_EMAIL=<email address> \ |
| 31 | + -e CERBOT_IP_LOGGING=true \ |
| 32 | +solidnerd/letsencrpyt-dns:0.1.0 |
| 33 | +``` |
| 34 | + |
| 35 | +## Configuration |
| 36 | + |
| 37 | +|Variable | Description | |
| 38 | +|:-------| :---------- | |
| 39 | +|CERTBOT_DOMAIN| Domain that should receive a certificate | |
| 40 | +| CLOUDFLARE_API_KEY | Global Api Key from Cloudflare | |
| 41 | +| CLOUDFLARE_EMAIL | Email Address that is used to login in cloudflare | |
| 42 | +| CERTBOT_IP_LOGGING | Accepts that the IP will be logged from the server that requests a certificate | |
| 43 | + |
| 44 | +## Issues |
| 45 | + |
| 46 | +Make an issue on the [GitHub Repo](https://github.com/solidnerd/letsencrypt-dns) . |
| 47 | + |
| 48 | +## Inspiration |
| 49 | + |
| 50 | +This repo got a lot of inspiration from the lets encrypt user guide. |
| 51 | + |
| 52 | +- http://letsencrypt.readthedocs.io/en/latest/using.html#hooks |
0 commit comments