From fe5f92f6ed3a545e7347aa1b2747a7db276bfee5 Mon Sep 17 00:00:00 2001 From: fab Date: Tue, 7 Jan 2025 20:56:02 +0100 Subject: [PATCH] Update nginx.yml --- .github/workflows/nginx.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/nginx.yml b/.github/workflows/nginx.yml index ce233e8..f85e95f 100644 --- a/.github/workflows/nginx.yml +++ b/.github/workflows/nginx.yml @@ -67,6 +67,7 @@ jobs: # Create a merged_waf_rules.conf file with a server block echo "server {" > merged_waf_rules.conf for file in $(grep -L "map " waf_rules/waf_patterns/nginx/*.conf); do + echo "Merging $file..." cat "$file" >> merged_waf_rules.conf done echo "}" >> merged_waf_rules.conf @@ -74,6 +75,10 @@ jobs: echo "Contents of merged_waf_rules.conf:" cat merged_waf_rules.conf + # Debug: Print the problematic line (line 1162) + echo "Debugging line 1162 of merged_waf_rules.conf:" + sed -n '1162p' merged_waf_rules.conf + - name: Combine Nginx configuration run: | # Create a temporary nginx.conf file that includes the map directives and merged WAF rules