nginx and use configure lifecycle event