Only install and configure nginx when ui is installed