i needed a small feature for own purposes and pushed to github, include config generated by program at nginx startup.
https://github.com/korneil/ngx_include_shell_module
https://github.com/korneil/ngx_include_shell_module