Update nginx.yml

This commit is contained in:
fab 2025-01-07 19:12:23 +01:00 committed by GitHub
parent 0f93c485ab
commit 55789b7c5e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -50,13 +50,13 @@ jobs:
- name: Combine Nginx configuration - name: Combine Nginx configuration
run: | run: |
# Wrap WAF rules in a server block # Create a temporary file to hold the WAF rules
echo "server {" > wrapped_waf_rules.conf echo "http {" > temp_http_block.conf
cat waf_rules/waf_patterns/nginx/*.conf >> wrapped_waf_rules.conf echo " include /etc/nginx/waf_rules/*.conf;" >> temp_http_block.conf
echo "}" >> wrapped_waf_rules.conf echo "}" >> temp_http_block.conf
# Combine nginx.conf with wrapped WAF rules # Combine nginx.conf with the WAF rules
cat tests/nginx.conf wrapped_waf_rules.conf > combined_nginx.conf cat tests/nginx.conf waf_rules/waf_patterns/nginx/*.conf > combined_nginx.conf
echo "Combined Nginx configuration:" echo "Combined Nginx configuration:"
cat combined_nginx.conf cat combined_nginx.conf