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 a9dd3e7 commit e6d095b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/nginx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@ jobs:
exit 1
fi
- name: Merge WAF rules into a single file
- name: Merge WAF rules into a single file with a server block
run: |
# Merge all WAF rules into a single file
cat waf_rules/waf_patterns/nginx/*.conf > merged_waf_rules.conf
# Create a merged_waf_rules.conf file with a server block
echo "server {" > merged_waf_rules.conf
cat waf_rules/waf_patterns/nginx/*.conf >> merged_waf_rules.conf
echo "}" >> merged_waf_rules.conf
echo "Merged WAF rules into merged_waf_rules.conf"
echo "Contents of merged_waf_rules.conf:"
cat merged_waf_rules.conf
Expand Down

0 comments on commit e6d095b

Please sign in to comment.