{ "source": { "type": "api" }, "api": { "url": "https://vps789.com/openApi/cfIpTop20", "method": "GET", "headers": {}, "params": {}, "timeout_sec": 10 }, "parser": { "field_paths": [ "data.good[].ip" ], "json_paths": [], "regex": "[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}" }, "record_mapping": { "records_path": "data.good[]", "field_map": { "domain": "ip", "created_at": "createdTime", "avg_score": "avgScore", "yd_score": "ydScore", "dx_score": "dxScore", "lt_score": "ltScore", "avg_latency": "avgLatency", "avg_pkg_lost_rate": "avgPkgLostRate", "yd_latency": "ydLatency", "yd_pkg_lost_rate": "ydPkgLostRate", "lt_latency": "ltLatency", "lt_pkg_lost_rate": "ltPkgLostRate", "dx_latency": "dxLatency", "dx_pkg_lost_rate": "dxPkgLostRate", "location_country": "locationCountry", "location_city": "locationCity", "host_provider": "hostProvider" }, "created_time_formats": [ "%Y-%m-%d %H:%M:%S" ], "created_time_timezone": "UTC" }, "record_filter": { "enabled": true, "exclude_if_any": [ { "field": "host_provider", "equals": "CF优选IP", "case_sensitive": false }, { "field": "domain", "equals": "openai.com", "case_sensitive": false } ] }, "domain_filter": { "include_suffixes": [], "exclude_regex": [ "^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}$" ] }, "scoring": { "enabled": true, "strategy": "weighted_average", "weighted_fields": [ { "field": "dx_score", "weight": 1.0 } ], "prefer_lower": true, "within_hours": 24, "tie_breakers": [ { "field": "created_at", "order": "desc" }, { "field": "domain", "order": "asc" } ] }, "healthcheck": { "enabled": true, "attempts": 5, "timeout_ms": 1800, "port": 443, "tls_verify": true }, "selection": { "top_n": 3 }, "output": { "runtime_dir": "./runtime", "current_domain_file": "current_domain.txt", "current_domain_json": "current_domain.json", "state_file": "state.json", "substore_vars_file": "substore_vars.json" }, "v2ray": { "template_file": "", "output_file": "", "replace_token": "__AUTO_DOMAIN__" }, "notify": { "command": "" } }