add contraint homepage fix upload file and init config