Virtualmin nginx module, post virtual host create script/hook?

May I know where can I find the script where virtualmin or nginx module performs post-processing where it adds virtual server settings in /etc/nginx.conf? Where can I also add post processing script to add other directives to the virtual server everytime it creates a virtual server?

Thanks.