config.json 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. {
  2. "api": {
  3. "url": "https://vps789.com/openApi/cfIpTop20",
  4. "method": "GET",
  5. "headers": {},
  6. "params": {},
  7. "timeout_sec": 10
  8. },
  9. "parser": {
  10. "field_paths": [
  11. "data.good[].ip"
  12. ],
  13. "json_paths": [],
  14. "regex": "[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}"
  15. },
  16. "record_filter": {
  17. "enabled": true,
  18. "records_path": "data.good[]",
  19. "domain_field": "ip",
  20. "exclude_if_any": [
  21. {
  22. "field_path": "locationCountry",
  23. "contains": "泛播",
  24. "case_sensitive": false
  25. },
  26. {
  27. "field_path": "locationCity",
  28. "contains": "泛播",
  29. "case_sensitive": false
  30. }
  31. ]
  32. },
  33. "domain_filter": {
  34. "include_suffixes": [],
  35. "exclude_regex": [
  36. "^(?: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}$"
  37. ]
  38. },
  39. "scoring": {
  40. "enabled": true,
  41. "records_path": "data.good[]",
  42. "ip_field": "ip",
  43. "created_time_field": "createdTime",
  44. "score_fields": [
  45. "avgScore"
  46. ],
  47. "within_hours": 24,
  48. "prefer_lower": false,
  49. "use_api_order": false
  50. },
  51. "healthcheck": {
  52. "enabled": false,
  53. "attempts": 2,
  54. "timeout_ms": 1800,
  55. "port": 443,
  56. "tls_verify": true
  57. },
  58. "selection": {
  59. "top_n": 3
  60. },
  61. "output": {
  62. "runtime_dir": "./runtime",
  63. "current_domain_file": "current_domain.txt",
  64. "current_domain_json": "current_domain.json",
  65. "state_file": "state.json",
  66. "substore_vars_file": "substore_vars.json"
  67. },
  68. "v2ray": {
  69. "template_file": "",
  70. "output_file": "",
  71. "replace_token": "__AUTO_DOMAIN__"
  72. },
  73. "notify": {
  74. "command": ""
  75. }
  76. }