Skip to content

Commit cf8e375

Browse files
committed
Fixed memory issue with Crowdsec and Openresty
Added ipv6=off to resolvers.conf
1 parent 519b88a commit cf8e375

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ RUN \
387387
# Deploy Crowdsec Openresty Bouncer.
388388
echo "Deploy Crowdsec Openresty Bouncer.." && \
389389
cd /tmp/crowdsec-openresty-bouncer && \
390-
bash ./install.sh --NGINX_CONF_DIR=/etc/nginx/conf.d --LIB_PATH=/var/lib/nginx/lualib --CONFIG_PATH=/defaults/crowdsec/ --DATA_PATH=/defaults/crowdsec/ --docker && \
390+
bash ./install.sh --NGINX_CONF_DIR=/etc/nginx/conf.d --LIB_PATH=/var/lib/nginx/lualib --CONFIG_PATH=/defaults/crowdsec/ --DATA_PATH=/defaults/crowdsec/ --SSL_CERTS_PATH=/etc/ssl/certs/GTS_root_R1.pem --docker && \
391391
sed-patch 's|ENABLED=.*|ENABLED=false|' /defaults/crowdsec/crowdsec-openresty-bouncer.conf && \
392392
# Cleanup.
393393
del-pkg build-dependencies && \

rootfs/etc/cont-init.d/nginx-proxy-manager.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ then
6464
fi
6565

6666
# Generate the resolvers configuration file.
67-
echo resolver "$(awk 'BEGIN{ORS=" "} $1=="nameserver" { sub(/%.*$/,"",$2); print ($2 ~ ":")? "["$2"]": $2}' /etc/resolv.conf);" > /config/nginx/resolvers.conf
67+
echo resolver "$(awk 'BEGIN{ORS=" "} $1=="nameserver" { sub(/%.*$/,"",$2); print ($2 ~ ":")? "["$2"]": $2}' /etc/resolv.conf) ipv6=off;" > /config/nginx/resolvers.conf
6868

6969
# Hnandle IPv6 settings.
7070
/opt/nginx-proxy-manager/bin/handle-ipv6-setting /etc/nginx/conf.d

0 commit comments

Comments
 (0)