mirror of
https://github.com/fabriziosalmi/patterns.git
synced 2025-12-29 16:15:12 +00:00
Update nginx.yml
This commit is contained in:
27
.github/workflows/nginx.yml
vendored
27
.github/workflows/nginx.yml
vendored
@@ -59,10 +59,8 @@ jobs:
|
|||||||
echo "}" >> map_directives.conf
|
echo "}" >> map_directives.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "First 10 lines of map_directives.conf:"
|
echo "Contents of map_directives.conf:"
|
||||||
head -n 10 map_directives.conf
|
cat map_directives.conf
|
||||||
echo "Last 10 lines of map_directives.conf:"
|
|
||||||
tail -n 10 map_directives.conf
|
|
||||||
|
|
||||||
- name: Merge WAF rules into a single file with a server block
|
- name: Merge WAF rules into a single file with a server block
|
||||||
run: |
|
run: |
|
||||||
@@ -75,10 +73,8 @@ jobs:
|
|||||||
sed -i '/^\s*}\s*$/d' merged_waf_rules.conf
|
sed -i '/^\s*}\s*$/d' merged_waf_rules.conf
|
||||||
echo "}" >> merged_waf_rules.conf
|
echo "}" >> merged_waf_rules.conf
|
||||||
|
|
||||||
echo "First 10 lines of merged_waf_rules.conf:"
|
echo "Contents of merged_waf_rules.conf:"
|
||||||
head -n 10 merged_waf_rules.conf
|
cat merged_waf_rules.conf
|
||||||
echo "Last 10 lines of merged_waf_rules.conf:"
|
|
||||||
tail -n 10 merged_waf_rules.conf
|
|
||||||
|
|
||||||
- name: Combine Nginx configuration
|
- name: Combine Nginx configuration
|
||||||
run: |
|
run: |
|
||||||
@@ -92,10 +88,17 @@ jobs:
|
|||||||
echo " include /etc/nginx/tests/nginx.conf;" >> temp_nginx.conf
|
echo " include /etc/nginx/tests/nginx.conf;" >> temp_nginx.conf
|
||||||
echo "}" >> temp_nginx.conf
|
echo "}" >> temp_nginx.conf
|
||||||
|
|
||||||
echo "First 10 lines of temp_nginx.conf:"
|
echo "Contents of temp_nginx.conf:"
|
||||||
head -n 10 temp_nginx.conf
|
cat temp_nginx.conf
|
||||||
echo "Last 10 lines of temp_nginx.conf:"
|
|
||||||
tail -n 10 temp_nginx.conf
|
- name: Debug included files
|
||||||
|
run: |
|
||||||
|
echo "Contents of map_directives.conf:"
|
||||||
|
cat map_directives.conf
|
||||||
|
echo "Contents of merged_waf_rules.conf:"
|
||||||
|
cat merged_waf_rules.conf
|
||||||
|
echo "Contents of tests/nginx.conf:"
|
||||||
|
cat tests/nginx.conf
|
||||||
|
|
||||||
- name: Validate Nginx configuration using Docker
|
- name: Validate Nginx configuration using Docker
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user