config: add 'origin_type' to config_source struct