extract common httpserver config into a package