mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-19 18:03:01 -04:00
Merge pull request #735 from linuxserver/swag-crowdsec-debug
This commit is contained in:
@@ -5,6 +5,12 @@ CONFIG_PATH="/config/crowdsec/"
|
|||||||
LIB_PATH="/usr/local/lua/crowdsec/"
|
LIB_PATH="/usr/local/lua/crowdsec/"
|
||||||
DATA_PATH="/var/lib/crowdsec/lua/"
|
DATA_PATH="/var/lib/crowdsec/lua/"
|
||||||
|
|
||||||
|
if [[ ${DOCKER_MODS_DEBUG,,} = "true" ]]; then
|
||||||
|
CURL_NOISE_LEVEL="-v"
|
||||||
|
else
|
||||||
|
CURL_NOISE_LEVEL="--silent"
|
||||||
|
fi
|
||||||
|
|
||||||
echo "**** Configuring CrowdSec nginx Bouncer ****"
|
echo "**** Configuring CrowdSec nginx Bouncer ****"
|
||||||
|
|
||||||
# If API keys are missing, disable mod and exit
|
# If API keys are missing, disable mod and exit
|
||||||
@@ -23,10 +29,10 @@ echo "\
|
|||||||
|
|
||||||
# Download nginx bouncer
|
# Download nginx bouncer
|
||||||
if [[ -z ${CROWDSEC_VERSION+x} ]]; then \
|
if [[ -z ${CROWDSEC_VERSION+x} ]]; then \
|
||||||
CROWDSEC_VERSION=$(curl -sX GET "https://api.github.com/repos/crowdsecurity/cs-nginx-bouncer/releases/latest" | awk '/tag_name/{print $4;exit}' FS='[""]');
|
CROWDSEC_VERSION=$(curl -s "https://api.github.com/repos/crowdsecurity/cs-nginx-bouncer/releases/latest" | awk '/tag_name/{print $4;exit}' FS='[""]');
|
||||||
fi
|
fi
|
||||||
|
|
||||||
curl -so \
|
curl "${CURL_NOISE_LEVEL}" -Lo \
|
||||||
/tmp/crowdsec.tar.gz -L \
|
/tmp/crowdsec.tar.gz -L \
|
||||||
"https://github.com/crowdsecurity/cs-nginx-bouncer/releases/download/${CROWDSEC_VERSION}/crowdsec-nginx-bouncer.tgz"
|
"https://github.com/crowdsecurity/cs-nginx-bouncer/releases/download/${CROWDSEC_VERSION}/crowdsec-nginx-bouncer.tgz"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user