config.json 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. "domain_filter": {
  17. "include_suffixes": [],
  18. "exclude_regex": [
  19. "^(?: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}$"
  20. ]
  21. },
  22. "scoring": {
  23. "enabled": true,
  24. "records_path": "data.good[]",
  25. "ip_field": "ip",
  26. "created_time_field": "createdTime",
  27. "score_fields": [
  28. "avgScore",
  29. "ydScore",
  30. "dxScore",
  31. "ltScore"
  32. ],
  33. "within_hours": 24,
  34. "prefer_lower": true,
  35. "use_api_order": true
  36. },
  37. "healthcheck": {
  38. "enabled": false,
  39. "attempts": 2,
  40. "timeout_ms": 1800,
  41. "port": 443,
  42. "tls_verify": true
  43. },
  44. "selection": {
  45. "top_n": 3
  46. },
  47. "output": {
  48. "runtime_dir": "./runtime",
  49. "current_domain_file": "current_domain.txt",
  50. "current_domain_json": "current_domain.json",
  51. "state_file": "state.json",
  52. "substore_vars_file": "substore_vars.json"
  53. },
  54. "v2ray": {
  55. "template_file": "",
  56. "output_file": "",
  57. "replace_token": "__AUTO_DOMAIN__"
  58. },
  59. "notify": {
  60. "command": ""
  61. }
  62. }