Configuration inventory
Summarizes each parsed server block by listener, server name and proxy, static or other operating mode.
Day 042 / DevOps / Nginx
A dependency-free Python CLI that turns a local Nginx configuration into a deterministic server-block inventory and focused review checklist.
Summarizes each parsed server block by listener, server name and proxy, static or other operating mode.
Surfaces missing routing details, incomplete TLS pairs, repeated listener/name sets, enabled autoindex and unresolved include directives.
Processes a local UTF-8 file without invoking Nginx, following include files, reloading services or making network requests.
Server-block inventory
Five focused review rules
High, warning and informational findings
Quoted values and comments supported
Two-megabyte input boundary
Up to 100 server blocks
Text and JSON output
Eleven standard-library tests included
Argparse, pathlib, JSON and collections provide the complete dependency-free command-line workflow.
A small tokenizer and recursive parser handle comments, quoted values, directives and nested blocks within the documented scope.
Eleven tests cover parsing, malformed input, focused rules, privacy-conscious evidence, the server limit and CLI exit behavior.