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 @@
# Crowdsec plugin
Crowdsec integration example with bunkerized-nginx. See the [bunkerized-nginx-crowdsec](https://github.com/bunkerity/bunkerized-nginx-crowdsec) repository for more information.
## Preamble
This example uses a bunkerized-nginx plugin, you can have a look at the [documentation](https://bunkerized-nginx.readthedocs.io/en/latest/plugins.html) to get more information about plugins.
## Architecture
<img src="https://github.com/bunkerity/bunkerized-nginx/blob/dev/examples/crowdsec/architecture.png?raw=true" />
## Configuration
First of all you will need to get a bouncer key, you can use the **bouncer_key.sh** to generate one.
Then you can clone the bunkerized-nginx-crowdsec plugin and edit the **plugin.json** file.
## Docker
See [docker-compose.yml](https://github.com/bunkerity/bunkerized-nginx/blob/master/examples/crowdsec/docker-compose.yml).

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

View File

@@ -10,8 +10,8 @@ sleep 10
# get the bouncer key
docker-compose exec mycrowdsec cscli bouncers add MyBouncer
# enter the key into the CROWDSEC_KEY environment variable
read -p "edit CROWDSEC_KEY env var in docker-compose.yml file and press enter" edited
# enter the key into the CROWDSEC_KEY setting
read -p "edit CROWDSEC_KEY env var in plugin.json file and press enter" edited
# start all services
docker-compose up -d