examples improvement - certbot cloudflare and wildcard, clamav, crowdsec, ghost and gogs
This commit is contained in:
21
examples/crowdsec/README.md
Normal file
21
examples/crowdsec/README.md
Normal 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).
|
||||
BIN
examples/crowdsec/architecture.png
Normal file
BIN
examples/crowdsec/architecture.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 30 KiB |
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user