examples improvement - certbot cloudflare and wildcard, clamav, crowdsec, ghost and gogs
This commit is contained in:
21
examples/certbot-cloudflare/README.md
Normal file
21
examples/certbot-cloudflare/README.md
Normal file
@@ -0,0 +1,21 @@
|
||||
# Certbot with Cloudflare
|
||||
|
||||
Cloudflare supports HTTPS traffic between their servers and the origin one. This examples shows how to automatically valid HTTPS certificates signed by Let's Encrypt using the Cloudflare API.
|
||||
|
||||
## Preamble
|
||||
|
||||
We will assume that you already have some basic knowledges about Cloudflare. If that's not the case, we have made a dedicated blog post [here](https://www.bunkerity.com/web-security-at-almost-no-cost-cloudflare-free-plan-with-bunkerized-nginx/).
|
||||
|
||||
## Architecture
|
||||
|
||||
<img src="https://github.com/bunkerity/bunkerized-nginx/blob/dev/examples/certbot-cloudflare/architecture.png?raw=true" />
|
||||
|
||||
## Configuration
|
||||
|
||||
First of all you will need to edit the **certbot-new.sh** and **cloudflare.ini** files (e.g : domains, CF token, ...).
|
||||
|
||||
Then run the **certbot-new.sh** script to get the certificates and add cron job for **certbot-renew.sh** to setup automatic renewal.
|
||||
|
||||
## Docker
|
||||
|
||||
See [docker-compose.yml](https://github.com/bunkerity/bunkerized-nginx/blob/master/examples/certbot-cloudflare/docker-compose.yml).
|
||||
BIN
examples/certbot-cloudflare/architecture.png
Normal file
BIN
examples/certbot-cloudflare/architecture.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
@@ -14,7 +14,7 @@ docker run --rm \
|
||||
certbot/dns-cloudflare \
|
||||
renew
|
||||
if [ $? -ne 0 ] ; then
|
||||
echo "error while getting certificate for $DOMAINS"
|
||||
echo "error while renewing certificate for $DOMAINS"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user