test_nginx_config
Validate Nginx config syntax without reloading, returning JSON with validity, exit code, and error messages to prevent service disruptions.
Instructions
Test Nginx configuration for syntax errors ('nginx -t') without reloading.
Returns: JSON string indicating syntax validity, exit code, and syntax error messages.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |