From 15c604c59bbcf88ba9a671892cf28de47ee05b3c Mon Sep 17 00:00:00 2001 From: Mike Conrad Date: Sat, 1 Jun 2024 15:17:26 -0400 Subject: [PATCH 1/2] Update waf url --- docker-compose.local.yml | 4 ++-- docker-compose.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docker-compose.local.yml b/docker-compose.local.yml index 7f8c9ff..f2e8c34 100644 --- a/docker-compose.local.yml +++ b/docker-compose.local.yml @@ -18,7 +18,7 @@ services: labels: - traefik.enable=true - traefik.http.services.traefik.loadbalancer.server.port=8080 - - traefik.http.middlewares.waf.plugin.traefik-modsecurity-plugin.modSecurityUrl=http://waf:80 + - traefik.http.middlewares.waf.plugin.traefik-modsecurity-plugin.modSecurityUrl=http://waf:8080 - traefik.http.middlewares.waf.plugin.traefik-modsecurity-plugin.maxBodySize=10485760 waf: @@ -37,4 +37,4 @@ services: labels: - traefik.enable=true - traefik.http.routers.website.rule=PathPrefix(`/website`) - - traefik.http.routers.website.middlewares=waf@docker \ No newline at end of file + - traefik.http.routers.website.middlewares=waf@docker diff --git a/docker-compose.yml b/docker-compose.yml index e5eb97a..4707528 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -18,7 +18,7 @@ services: labels: - traefik.enable=true - traefik.http.services.traefik.loadbalancer.server.port=8080 - - traefik.http.middlewares.waf.plugin.traefik-modsecurity-plugin.modSecurityUrl=http://waf:80 + - traefik.http.middlewares.waf.plugin.traefik-modsecurity-plugin.modSecurityUrl=http://waf:8080 - traefik.http.middlewares.waf.plugin.traefik-modsecurity-plugin.maxBodySize=10485760 waf: @@ -37,4 +37,4 @@ services: labels: - traefik.enable=true - traefik.http.routers.website.rule=PathPrefix(`/website`) - - traefik.http.routers.website.middlewares=waf@docker \ No newline at end of file + - traefik.http.routers.website.middlewares=waf@docker From 954c7c1d531393f5baf9417fd7cb939fb429957e Mon Sep 17 00:00:00 2001 From: Mike Conrad Date: Sun, 2 Jun 2024 18:44:52 -0400 Subject: [PATCH 2/2] Pinned docker images to latest version --- docker-compose.local.yml | 4 ++-- docker-compose.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docker-compose.local.yml b/docker-compose.local.yml index f2e8c34..ce9a5c1 100644 --- a/docker-compose.local.yml +++ b/docker-compose.local.yml @@ -2,7 +2,7 @@ version: "3.7" services: traefik: - image: traefik + image: traefik:3.0.1 ports: - "8000:80" - "8080:8080" @@ -22,7 +22,7 @@ services: - traefik.http.middlewares.waf.plugin.traefik-modsecurity-plugin.maxBodySize=10485760 waf: - image: owasp/modsecurity-crs:apache + image: owasp/modsecurity-crs:4.2.0-apache-202405220605 environment: - PARANOIA=1 - ANOMALY_INBOUND=10 diff --git a/docker-compose.yml b/docker-compose.yml index 4707528..05b98b7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,7 +2,7 @@ version: "3.7" services: traefik: - image: traefik + image: traefik:3.0.1 ports: - "8000:80" - "8080:8080" @@ -22,7 +22,7 @@ services: - traefik.http.middlewares.waf.plugin.traefik-modsecurity-plugin.maxBodySize=10485760 waf: - image: owasp/modsecurity-crs:apache + image: owasp/modsecurity-crs:4.2.0-apache-202405220605 environment: - PARANOIA=1 - ANOMALY_INBOUND=10