Update config file and move AP base url to config