If you add something to be bottom of the nginxDomainVirtualHost.php, it will get added after the server{} block for https/ssl vhosts and inside the server{} block for the port 80 vhosts.
Do not ask my why, but the whole templating stuff of Plesk is quite complex and sometimes beyond my...