Nginx dynamic generate

instead of nmis.nginx, generate the nginx file dynamically