Skip to content

Commit 22df7aa

Browse files
authored
v7.0.1 (#158)
Minor updates * Using latest base image * Show output when NAXSI is not enabled
1 parent 4bdc4b1 commit 22df7aa

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM bfren/nginx:nginx1.24-alpine3.18-5.0.13
1+
FROM bfren/nginx:nginx1.24-alpine3.18-5.0.14
22

33
LABEL org.opencontainers.image.source="https://github.com/bfren/docker-nginx-proxy"
44

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.0.0
1+
7.0.1

overlay/etc/bf/init.d/23-naxsi

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ export BF_E=`basename ${0}`
88
# Generate NAXSI configuration.
99
#======================================================================================================================
1010

11-
bf-echo "Generating NAXSI files."
12-
bf-esh ${BF_TEMPLATES}/naxsi.conf.esh /etc/nginx/helpers/naxsi.conf
13-
bf-done
11+
if [ "${PROXY_ENABLE_NAXSI-}" = "1" ] ; then
12+
13+
bf-echo "Generating NAXSI files."
14+
bf-esh ${BF_TEMPLATES}/naxsi.conf.esh /etc/nginx/helpers/naxsi.conf
15+
bf-done
16+
17+
else
18+
19+
bf-echo "NAXSI not enabled."
20+
21+
fi

0 commit comments

Comments
 (0)