templating nginx configuration