Support location config in yaml