Verified Commit 07358fe2 authored by tr's avatar tr
Browse files

Print default.conf for debugging

parent 231f7169
Pipeline #6574 failed with stages
in 18 minutes and 42 seconds
......@@ -6,6 +6,7 @@ include:
Test Image Base:
extends: .test-image
script:
- cat /etc/nginx/conf.d/default.conf
- nginx -t 2>&1 | grep ModSecurity-nginx
- test -x /usr/local/bin/modsec-rules-check
- test -f /etc/modsecurity/coreruleset/crs-setup.conf
......@@ -15,6 +16,7 @@ Test Image with Server Name:
variables:
SERVER_NAME: "www.example.com"
script:
- cat /etc/nginx/conf.d/default.conf
- nginx -t 2>&1 | grep ModSecurity-nginx
- grep -E 'server_name.*www.example.com' /etc/nginx/conf.d/default.conf
......@@ -24,6 +26,7 @@ Test Image TLS key:
TLS_KEY: "/etc/pki/tls/private/nginx.key"
TLS_CERT: "/etc/pki/tls/certs/nginx.pem"
script:
- cat /etc/nginx/conf.d/default.conf
- nginx -t 2>&1 | grep ModSecurity-nginx
- test -f /etc/pki/tls/private/nginx.key
- test -f /etc/pki/tls/certs/nginx.pem
......@@ -37,6 +40,7 @@ Test Image Base Backend:
variables:
BACKEND: "https://www.example.com/"
script:
- cat /etc/nginx/conf.d/default.conf
- nginx -t 2>&1 | grep ModSecurity-nginx
- grep -E 'proxy_ssl_ciphers' /etc/nginx/conf.d/default.conf
- grep -E 'proxy_ssl_protocols' /etc/nginx/conf.d/default.conf
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment