Skip to content

Commit

Permalink
Update nginx.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriziosalmi authored Jan 7, 2025
1 parent 1f2562d commit fe5f92f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/nginx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,18 @@ 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
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
Expand Down

0 comments on commit fe5f92f

Please sign in to comment.