diff --git a/confs/site/modsecurity-rules.conf b/confs/site/modsecurity-rules.conf index 6236b06..279cf47 100644 --- a/confs/site/modsecurity-rules.conf +++ b/confs/site/modsecurity-rules.conf @@ -50,7 +50,6 @@ SecResponseBodyLimitAction ProcessPartial # log usefull stuff SecAuditEngine RelevantOnly -SecAuditLogRelevantStatus "^(?:5|4(?!04))" SecAuditLogType Serial SecAuditLog /var/log/nginx/modsec_audit.log diff --git a/examples/crowdsec/bouncer_key.sh b/examples/crowdsec/bouncer_key.sh index fd3d72d..068dd89 100644 --- a/examples/crowdsec/bouncer_key.sh +++ b/examples/crowdsec/bouncer_key.sh @@ -1,3 +1,23 @@ #!/bin/sh +# first, you need to run the crowdsec service +echo "running crowdsec service ..." +docker-compose up -d mycrowdsec + +# wait a little until it's up +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 -s "edit CROWDSEC_KEY env var in docker-compose.yml file and press enter" + +# start all services +docker-compose up -d + +# wait a little until it's up +sleep 10 + +# restart crowdsec so it reads the log files +docker-compose restart mycrowdsec