feat: pre-validate custom nginx.conf.sigil during core-post-extract
Renders the user-supplied nginx.conf.sigil via sigil into a tmp file and runs `nginx -t` against a wrapped copy as soon as the template is extracted from the source tree, so syntactically invalid templates abort the deploy before the build phase runs. Skipped when `proxy-type` is not `nginx`, when `disable-custom-config=true`, or when no custom template was extracted. Closes #7827.
This commit is contained in:
6 files changed
+315
-124
No files matched your search
@@ -96,4 +96,6 @@ teardown() {
|
||||
echo "output: $output"
|
||||
echo "status: $status"
|
||||
assert_failure
|
||||
assert_output_contains "Pre-validating custom nginx.conf.sigil"
|
||||
assert_output_contains "Custom nginx.conf.sigil failed nginx -t validation"
|
||||
}
|
||||
Reference in new issue
Block a user