Use nginx as a common TCP server framework