pref.ini 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. [common]
  2. ;API mode, set to true to prevent loading local subscriptions or serving local files directly
  3. api_mode=false
  4. ;Access token used for performing critical action through Web interface
  5. api_access_token=password
  6. ;Default URLs, used when no URL is provided in request, use "|" to separate multiple subscription links, supports local files/URL
  7. default_url=
  8. ;URLs to insert before subscription links, can be used to add node(s) to all exported subscriptions, use "|" to separate multiple subscription links, supports local files/URL
  9. insert_url=
  10. ;Exclude nodes which remarks match the following patterns. Supports regular expression.
  11. exclude_remarks=(到期|剩余流量|时间|官网|产品)
  12. ;exclude_remarks=(other rule)
  13. ;Only include nodes which remarks match the following patterns. Supports regular expression.
  14. ;include_remarks=V3.*港
  15. ;Clash config base used by the generator, supports local files/URL
  16. clash_rule_base=base/simple_base.yml
  17. ;Surge config base used by the generator, supports local files/URL
  18. surge_rule_base=base/surge.conf
  19. ;Surfboard config base used by the generator, supports local files/URL
  20. surfboard_rule_base=base/surfboard.conf
  21. ;Mellow config base used by the generator, supports local files/URL
  22. mellow_rule_base=base/mellow.conf
  23. ;Quantumult config base used by the generator, supports local files/URL
  24. quan_rule_base=base/quan.conf
  25. ;Quantumult X config base used by the generator, supports local files/URL
  26. quanx_rule_base=base/quanx.conf
  27. ;Loon config base used by the generator, supports local files/URL
  28. loon_rule_base=base/loon.conf
  29. ;Proxy used to download configs, rulesets or subscriptions, set to NONE or empty to disable it, set to SYSTEM to use system proxy.
  30. ;Accept cURL-supported proxies (http:// https:// socks4a:// socks5://)
  31. proxy_config=SYSTEM
  32. proxy_ruleset=SYSTEM
  33. proxy_subscription=NONE
  34. ;Append a proxy type string ([SS] [SSR] [VMess]) to node remark.
  35. append_proxy_type=false
  36. [userinfo]
  37. ;Rules to extract stream data from node
  38. ;Format: full_match_regex|new_format_regex
  39. ;where new_format_regex should be like "total=$1&left=$2&used=$3"
  40. stream_rule=^剩余流量:(.*?) (.*)$|total=$1&left=$2
  41. stream_rule=^Bandwidth: (.*?)/(.*)$|used=$1&total=$2
  42. stream_rule=^\[.*?\]剩余(.*?)@(?:.*)$|total=$1
  43. stream_rule=^.*?流量:(.*?) 剩:(?:.*)$|total=$1
  44. ;Rules to extract expire time data from node
  45. ;Format: full_match_regex|new_format_regex
  46. ;where new_format_regex should follow this example: yyyy:mm:dd:hh:mm:ss
  47. time_rule=^过期时间:(\d+)-(\d+)-(\d+) (\d+):(\d+):(\d+)$|$1:$2:$3:$4:$5:$6
  48. time_rule=^到期时间:(\d+)-(\d+)-(\d+)$|$1:$2:$3:0:0:0
  49. time_rule=^Smart Access expire: (\d+)/(\d+)/(\d+)$|$1:$2:$3:0:0:0
  50. time_rule=^.*?流量:(?:.*?) 剩:(.*)$|left=$1d
  51. [node_pref]
  52. udp_flag=false
  53. tcp_fast_open_flag=false
  54. sort_flag=false
  55. skip_cert_verify_flag=false
  56. filter_deprecated_nodes=false
  57. ;Rename remarks with the following patterns. Supports regular expression.
  58. ;Format: Search_Pattern@Replace_Pattern
  59. ;rename_node=IPLC@专线
  60. ;rename_node=RELAY@中转
  61. ;rename_node=BGP-@
  62. rename_node=!!import:snippets/rename_node.txt
  63. [managed_config]
  64. ;Append a '#!MANAGED-CONFIG' info to Surge configurations
  65. write_managed_config=true
  66. ;Address prefix for MANAGED-CONFIG info, without the trailing "/".
  67. ;This address will also be used for generating /getruleset, /qx-rewrite, /qx-script addresses.
  68. managed_config_prefix=http://127.0.0.1:25500
  69. ;Managed config update interval in seconds, determine how long the config will be updated.
  70. config_update_interval=86400
  71. ;If config_update_struct is set to true, Surge will require a force update after the interval.
  72. config_update_struct=false
  73. ;Device ID to be written to rewrite scripts for some version of Quantumult X
  74. quanx_device_id=
  75. [surge_external_proxy]
  76. ;surge_ssr_path=/usr/bin/ssr-local
  77. [emojis]
  78. add_emoji=true
  79. remove_old_emoji=true
  80. ;Rule to add emojis. Supports regular expression.
  81. ;Format: Remark_Search_Pattern,emoji
  82. ;rule=(流量|时间|应急|过期|Bandwidth|expire),🏳️‍🌈
  83. ;rule=AC,🇦🇨
  84. rule=!!import:snippets/emoji.txt
  85. [ruleset]
  86. ;Enable generating rules with rulesets
  87. enabled=true
  88. ;Overwrite the existing rules in rule_base
  89. overwrite_original_rules=false
  90. ;Perform a ruleset update on request
  91. update_ruleset_on_request=false
  92. ;Ruleset addresses, supports local files/URL
  93. ;Format: Group name,URL
  94. ; Group name,[]Rule
  95. ;surge_ruleset=DIRECT,https://raw.githubusercontent.com/ConnersHua/Profiles/master/Surge/Ruleset/Unbreak.list
  96. ;surge_ruleset=🎯 全球直连,rules/LocalAreaNetwork.list
  97. ;surge_ruleset=🎯 全球直连,[]GEOIP,CN
  98. ;surge_ruleset=🐟 漏网之鱼,[]FINAL
  99. surge_ruleset=!!import:snippets/rulesets.txt
  100. [clash_proxy_group]
  101. ;Generate Clash Proxy Group with the following patterns. Node filterting rule supports regular expression.
  102. ;Format: Group_Name`select`Rule_1`Rule_2`...
  103. ; Group_Name`url-test|fallback|load-balance`Rule_1`Rule_2`...`test_url`interval
  104. ;Rule with "[]" prefix will be added directly.
  105. ;custom_proxy_group=Proxy`select`.*`[]AUTO`[]DIRECT`.*
  106. ;custom_proxy_group=UrlTest`url-test`.*`http://www.gstatic.com/generate_204`300
  107. ;custom_proxy_group=FallBack`fallback`.*`http://www.gstatic.com/generate_204`300
  108. ;custom_proxy_group=LoadBalance`load-balance`.*`http://www.gstatic.com/generate_204`300
  109. ;custom_proxy_group=SSID`ssid`default_group`celluar=group0,ssid1=group1,ssid2=group2
  110. ;custom_proxy_group=g1`select`!!GROUPID=0
  111. ;custom_proxy_group=g2`select`!!GROUPID=1
  112. ;custom_proxy_group=v2ray`select`!!GROUP=V2RayProvider
  113. ;custom_proxy_group=g1hk`select`!!GROUPID=0!!(HGC|HKBN|PCCW|HKT|hk|港)
  114. ;custom_proxy_group=sstw`select`!!GROUP=V2RayProvider!!(深台|彰化|新北|台|tw)
  115. ;for forcerule.yml
  116. ;custom_proxy_group=!!import:snippets/groups_forcerule.txt
  117. ;for Surge rulesets
  118. custom_proxy_group=!!import:snippets/groups.txt
  119. [server]
  120. ;Address to bind on for Web Server
  121. listen=0.0.0.0
  122. ;Port to bind on for Web Server
  123. port=25500
  124. [advanced]
  125. print_debug_info=false
  126. max_pending_connections=10240
  127. max_concurrent_threads=2
  128. enable_base_gen=false
  129. enable_cache=false
  130. cache_subscription=60
  131. cache_config=300
  132. cache_ruleset=21600