ngxtop
ngxtop copied to clipboard
Support for 'include' directives added
This update allows ngxtop to parse files that are included in the Nginx config via 'include' directives. Useful for large deployments where each vhost is located in a separate config file like:
include /usr/local/www/conf/*.conf;
Thanks, support for include
directive would be very helpful indeed. However I think you missed some complications with current implementation:
- The included file can have other
include
directives - The include file can be specified as relative path to the main nginx config
It was just a quick fix to make ngxtop run on my reverse proxy setup. I'll may fix those two issues in the next few days.
+1
Merged: https://github.com/ngxtop/ngxtop/commit/f09560351c469d9d40b128afaab10d0c5856256e