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:
Jose Diaz-Gonzalez committed 2026-04-29 05:01:25 -04:00
1 parent 9b6c32f39c
commit 63b809f64c
6 files changed
+315 -124

No files matched your search

+2
View File
@@ -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"
}