rename indexurl to config and make a resource