Add base url to config, server and template.