mirror of
https://github.com/NginxProxyManager/docker-nginx-full.git
synced 2024-12-06 19:26:20 +01:00
21 lines
804 B
Bash
Executable File
21 lines
804 B
Bash
Executable File
#!/bin/bash -e
|
||
|
||
BLUE='\E[1;34m'
|
||
CYAN='\E[1;36m'
|
||
YELLOW='\E[1;33m'
|
||
GREEN='\E[1;32m'
|
||
RESET='\E[0m'
|
||
|
||
echo -e "${BLUE}❯ ${CYAN}Installing Crowdsec OpenResty Bouncer ${YELLOW}${CROWDSEC_OPENRESTY_BOUNCER_VERSION}...${RESET}"
|
||
|
||
cd /tmp
|
||
wget "https://github.com/crowdsecurity/cs-openresty-bouncer/releases/download/v${CROWDSEC_OPENRESTY_BOUNCER_VERSION}/crowdsec-openresty-bouncer.tgz"
|
||
mkdir -p /tmp/crowdsec
|
||
tar xzf crowdsec-openresty-bouncer.tgz --strip 1 -C /tmp/crowdsec
|
||
cd /tmp/crowdsec
|
||
|
||
bash ./install.sh --NGINX_CONF_DIR=/etc/nginx/conf.d --LIB_PATH=/etc/nginx/lualib --CONFIG_PATH=/defaults/crowdsec --DATA_PATH=/defaults/crowdsec --docker
|
||
sed -i 's|ENABLED=.*|ENABLED=false|' /defaults/crowdsec/crowdsec-openresty-bouncer.conf
|
||
|
||
echo -e "${BLUE}❯ ${GREEN}OpenResty plugins install completed${RESET}"
|