examples improvement - certbot cloudflare and wildcard, clamav, crowdsec, ghost and gogs

This commit is contained in:
bunkerity
2021-08-04 15:02:55 +02:00
parent 44de2253d2
commit d8286ced7c
16 changed files with 111 additions and 3 deletions

View 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).

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View File

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