change nginx to a service