added #update_endpoints to nginx