Allow config for setting public path regexes.