Skip to content

Commit

Permalink
Tweaks so this actually works
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenPaugh committed May 6, 2024
1 parent 139d0e8 commit 6c7dde9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/_configure_plextrac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
2 changes: 1 addition & 1 deletion static/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 6c7dde9

Please sign in to comment.