nginx_config
Validate and inspect nginx configuration: run syntax checks, view main or site configs, list enabled and available sites, and dump the fully resolved configuration.
Instructions
Read, validate, and inspect nginx configuration. Actions: 'show' reads the main config or a specific site, 'test' runs nginx -t validation, 'list_sites' shows enabled/available sites, 'full_config' dumps the fully resolved configuration.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | For 'show' action: a specific site config file name to read from sites-enabled or sites-available (e.g. 'default'). | |
| action | Yes | Action to perform: - 'show': Show the main nginx.conf file - 'test': Run nginx -t to validate configuration - 'list_sites': List enabled and available sites - 'full_config': Show the fully resolved configuration (nginx -T) |