From 6c7dde9a52ef0251a71db6810ed000ce9633018a Mon Sep 17 00:00:00 2001 From: Steven Paugh Date: Mon, 6 May 2024 16:15:24 -0400 Subject: [PATCH] Tweaks so this actually works --- src/_configure_plextrac.sh | 6 +++--- static/docker-compose.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/_configure_plextrac.sh b/src/_configure_plextrac.sh index 58e6688..2933403 100644 --- a/src/_configure_plextrac.sh +++ b/src/_configure_plextrac.sh @@ -209,11 +209,11 @@ function create_volume_directories() { function configure_waf() { title "Create directory and file for customer curated WAF rules" - info "Validating directories for bind mounts" - debug "Ensuring directories exist for Volumes..." + info "Validating directory and file for customer curated WAF rules" + debug "Ensuring directory and file exist for WAF." if test -f "${PLEXTRAC_HOME}/volumes/naxsi-waf/customer_curated.rules"; then debug "WAF Config already exists" else - mkdir -vp ${PLEXTRAC_HOME}/volumes/naxsi-waf + mkdir -vp "${PLEXTRAC_HOME}/volumes/naxsi-waf" echo "## Custom WAF Rules Below" > ${PLEXTRAC_HOME}/volumes/naxsi-waf/customer_curated.rules } diff --git a/static/docker-compose.yml b/static/docker-compose.yml index 45587e8..583551e 100644 --- a/static/docker-compose.yml +++ b/static/docker-compose.yml @@ -125,7 +125,7 @@ services: restart: always volumes: - letsencrypt:/etc/letsencrypt:rw - - ${PLEXTRAC_HOME:-.}/volumes/web-application-firewall/customer_curated.rules:/etc/nginx/conf.d/customer_curated.rules:r + - ${PLEXTRAC_HOME:-.}/volumes/naxsi-waf/customer_curated.rules:/etc/nginx/conf.d/customer_curated.rules:r healthcheck: test: - "CMD-SHELL"