config.json 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. ],
  30. "within_hours": 24,
  31. "prefer_lower": false,
  32. "use_api_order": false
  33. },
  34. "healthcheck": {
  35. "enabled": false,
  36. "attempts": 2,
  37. "timeout_ms": 1800,
  38. "port": 443,
  39. "tls_verify": true
  40. },
  41. "selection": {
  42. "top_n": 3
  43. },
  44. "output": {
  45. "runtime_dir": "./runtime",
  46. "current_domain_file": "current_domain.txt",
  47. "current_domain_json": "current_domain.json",
  48. "state_file": "state.json",
  49. "substore_vars_file": "substore_vars.json"
  50. },
  51. "v2ray": {
  52. "template_file": "",
  53. "output_file": "",
  54. "replace_token": "__AUTO_DOMAIN__"
  55. },
  56. "notify": {
  57. "command": ""
  58. }
  59. }