crowdsec - fix bugs and update example

This commit is contained in:
bunkerity
2021-05-18 14:03:16 +02:00
parent 7c6a13c549
commit 600484b16e
8 changed files with 62 additions and 23 deletions

View File

@@ -229,9 +229,9 @@ fi
# CrowdSec setup
if [ "$(has_value USE_CROWDSEC yes)" != "" ] ; then
replace_in_file "/etc/nginx/nginx.conf" "%USE_CROWDSEC%" "include /etc/nginx/crowdsec.conf;"
replace_in_file "/etc/nginx/init-lua.conf" "%USE_CROWDSEC%" "true"
else
replace_in_file "/etc/nginx/nginx.conf" "%USE_CROWDSEC%" ""
replace_in_file "/etc/nginx/init-lua.conf" "%USE_CROWDSEC%" "false"
fi
# API