From 55789b7c5ea7f90efca9a94f8bde237c356c46b6 Mon Sep 17 00:00:00 2001 From: fab Date: Tue, 7 Jan 2025 19:12:23 +0100 Subject: [PATCH] Update nginx.yml --- .github/workflows/nginx.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/nginx.yml b/.github/workflows/nginx.yml index e6edf07..7d19b5a 100644 --- a/.github/workflows/nginx.yml +++ b/.github/workflows/nginx.yml @@ -50,13 +50,13 @@ jobs: - name: Combine Nginx configuration run: | - # Wrap WAF rules in a server block - echo "server {" > wrapped_waf_rules.conf - cat waf_rules/waf_patterns/nginx/*.conf >> wrapped_waf_rules.conf - echo "}" >> wrapped_waf_rules.conf + # Create a temporary file to hold the WAF rules + echo "http {" > temp_http_block.conf + echo " include /etc/nginx/waf_rules/*.conf;" >> temp_http_block.conf + echo "}" >> temp_http_block.conf - # Combine nginx.conf with wrapped WAF rules - cat tests/nginx.conf wrapped_waf_rules.conf > combined_nginx.conf + # Combine nginx.conf with the WAF rules + cat tests/nginx.conf waf_rules/waf_patterns/nginx/*.conf > combined_nginx.conf echo "Combined Nginx configuration:" cat combined_nginx.conf