Install nginx config only when UI needed

Also, provide a configuration variable to control whether the nginx configuration gets activated. You might not want it to become activated if you want to provide your own configuration, for example because you want to tweak the config or merge it with another configuration file.