NginxConfTree - Combiner for nginx configuration¶
- class insights.combiners.nginx_conf.NginxConfTree(confs)[source]¶
Bases:
insights.core.ConfigCombiner
This module models nginx configuration as a tree. It correctly handles include directives by splicing individual document trees into their parents until one document tree is left.
A DSL is provided to query the tree through a select function or brackets []. The brackets allow a more conventional lookup feel but aren’t quite as powerful as using select directly.
See the
insights.core.ConfigComponent
class for example usage.