File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -154,4 +154,4 @@ LABEL \
154
154
org.label-schema.description="Docker container for Nginx Proxy Manager" \
155
155
org.label-schema.version="${DOCKER_IMAGE_VERSION:-unknown}" \
156
156
org.label-schema.vcs-url="https://github.com/jlesage/docker-nginx-proxy-manager" \
157
- org.label-schema.schema-version="1.0"
157
+ org.label-schema.schema-version="1.0"
Original file line number Diff line number Diff line change 23
23
apk --no-cache add \
24
24
build-base \
25
25
gettext \
26
+ curl \
26
27
bash \
27
28
28
29
#
@@ -35,4 +36,4 @@ curl -# -L "${CROWDSEC_OPENRESTY_BOUNCER_URL}" | tar xz --strip 1 -C /tmp/crowds
35
36
log " Deploy Crowdsec Openresty Bouncer..."
36
37
cd /tmp/crowdsec-openresty-bouncer
37
38
bash ./install.sh --NGINX_CONF_DIR=${ROOTFS} /etc/nginx/conf.d --LIB_PATH=${ROOTFS} /var/lib/nginx/lualib --CONFIG_PATH=${ROOTFS} /defaults/crowdsec/ --DATA_PATH=${ROOTFS} /defaults/crowdsec/ --SSL_CERTS_PATH=/etc/ssl/certs/ca-cert-GTS_Root_R1.pem --docker
38
- sed-patch ' s|ENABLED=.*|ENABLED=false|' ${ROOTFS} /defaults/crowdsec/crowdsec-openresty-bouncer.conf
39
+ sed -i ' s|ENABLED=.*|ENABLED=false|' ${ROOTFS} /defaults/crowdsec/crowdsec-openresty-bouncer.conf
Original file line number Diff line number Diff line change @@ -72,6 +72,8 @@ log "Downloading libmaxminddb..."
72
72
mkdir /tmp/libmaxminddb
73
73
curl -# -L -f ${LIBMAXMINDDB_URL} | tar xz --strip 1 -C /tmp/libmaxminddb
74
74
75
+
76
+
75
77
#
76
78
# Compile.
77
79
#
@@ -180,6 +182,9 @@ make -C /tmp/openresty -j$(nproc)
180
182
log " Installing OpenResty..."
181
183
make DESTDIR=/tmp/openresty-install -C /tmp/openresty install
182
184
185
+ # Install lua-resty-http required for Crowdsec OpenResty Bouncer
186
+ /tmp/openresty-install/var/lib/nginx/bin/opm --install-dir=" /tmp/openresty-install/var/lib/nginx/site/" get pintsized/lua-resty-http
187
+
183
188
rm -r \
184
189
/tmp/openresty-install/etc/nginx/* .default \
185
190
/tmp/openresty-install/var/lib/nginx/bin/opm \
@@ -189,5 +194,4 @@ rm -r \
189
194
/tmp/openresty-install/var/lib/nginx/bin/md2pod.pl \
190
195
/tmp/openresty-install/var/lib/nginx/pod \
191
196
/tmp/openresty-install/var/lib/nginx/resty.index \
192
- /tmp/openresty-install/var/lib/nginx/site \
193
197
/tmp/openresty-install/var/run \
You can’t perform that action at this time.
0 commit comments