mirror of
https://github.com/fabriziosalmi/patterns.git
synced 2025-12-17 09:45:34 +00:00
Update nginx.yml
This commit is contained in:
parent
cf6e5e31f9
commit
0f93c485ab
8
.github/workflows/nginx.yml
vendored
8
.github/workflows/nginx.yml
vendored
@ -50,7 +50,13 @@ jobs:
|
||||
|
||||
- name: Combine Nginx configuration
|
||||
run: |
|
||||
cat tests/nginx.conf waf_rules/waf_patterns/nginx/*.conf > combined_nginx.conf
|
||||
# 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
|
||||
|
||||
# Combine nginx.conf with wrapped WAF rules
|
||||
cat tests/nginx.conf wrapped_waf_rules.conf > combined_nginx.conf
|
||||
echo "Combined Nginx configuration:"
|
||||
cat combined_nginx.conf
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user