pref.ini 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  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=ss|vmess
  8. default_url=
  9. ;Exclude nodes which remarks match the following patterns. Supports regular expression.
  10. exclude_remarks=(到期|剩余流量|时间|官网|产品)
  11. ;exclude_remarks=(other rule)
  12. ;Only include nodes which remarks match the following patterns. Supports regular expression.
  13. ;include_remarks=V3.*港
  14. ;Clash config base used by the generator, supports local files/URL
  15. clash_rule_base=simple_base.yml
  16. ;这个不是直接启用 需要你手工替换掉clash运行目录里config.yml中内容的,但是这个会跟应用拦截冲突
  17. ;clash_rule_base=rules/ACL4SSR/Clash/GeneralClashConfig.yml
  18. ;Surge config base used by the generator, supports local files/URL
  19. surge_rule_base=surge.conf
  20. ;Surfboard config base used by the generator, supports local files/URL
  21. surfboard_rule_base=surfboard.conf
  22. ;Mellow config base used by the generator, supports local files/URL
  23. mellow_rule_base=mellow.conf
  24. ;Proxy used to download rulesets or subscriptions, set to NONE or empty to disable it, set to SYSTEM to use system proxy.
  25. ;Accept cURL-supported proxies (http:// https:// socks4a:// socks5://)
  26. proxy_ruleset=SYSTEM
  27. proxy_subscription=NONE
  28. ;Append a proxy type string ([SS] [SSR] [VMess]) to node remark.
  29. append_proxy_type=false
  30. [node_pref]
  31. udp_flag=false
  32. tcp_fast_open_flag=false
  33. sort_flag=false
  34. skip_cert_verify_flag=false
  35. filter_deprecated_nodes=false
  36. ;Rename remarks with the following patterns. Supports regular expression.
  37. ;Format: Search_Pattern@Replace_Pattern
  38. ;rename_node=IPLC@专线
  39. ;rename_node=RELAY@中转
  40. ;rename_node=BGP-@
  41. ; short names
  42. ; rename_node=中国@中
  43. ; rename_node=徐州@徐
  44. ; rename_node=深圳@深
  45. ; rename_node=上海@沪
  46. ; rename_node=广州@穗
  47. ; rename_node=宁波@甬
  48. ; rename_node=贵阳@筑
  49. ; rename_node=武汉@汉
  50. ; rename_node=南京@宁
  51. ; rename_node=天津@津
  52. ; rename_node=北京@京
  53. ; rename_node=沈阳@沈
  54. ; rename_node=江苏@苏
  55. ; rename_node=浙江@浙
  56. ; rename_node=安徽@皖
  57. ; rename_node=福建@闽
  58. ; rename_node=湖南@湘
  59. ; rename_node=广东@粤
  60. ; rename_node=海南@琼
  61. ; rename_node=四川@川
  62. ; rename_node=贵州@贵
  63. ; rename_node=云南@云
  64. ; rename_node=青海@青
  65. ; rename_node=台湾@台
  66. ; rename_node=香港@港
  67. ; rename_node=澳门@澳
  68. ; rename_node=美国@美
  69. ; rename_node=英国@英
  70. ; rename_node=加拿大@加
  71. ; rename_node=法国@法
  72. ; rename_node=德国@德
  73. ; rename_node=瑞士@瑞
  74. ; rename_node=日本@日
  75. ; rename_node=韩国@韩
  76. ; rename_node=芬兰@芬
  77. ; rename_node=印度@印
  78. ; rename_node=泰国@泰
  79. ; rename_node=越南@越
  80. ; rename_node=新加坡@新
  81. ; rename_node=意大利@意
  82. ; rename_node=菲律宾@菲
  83. ; rename_node=俄罗斯@俄
  84. ; rename_node=土耳其@土
  85. ; times RE
  86. rename_node=\(?((x|X)?(\d+)(\.?\d+)?)((\s?倍率?)|(x|X))\)?@-$1x
  87. rename_node=\s*\-+\s*@-
  88. [managed_config]
  89. ;Append a '#!MANAGED-CONFIG' info to Surge configurations
  90. write_managed_config=true
  91. ;Address prefix for MANAGED-CONFIG info, without the trailing "/".
  92. managed_config_prefix=http://127.0.0.1:25500
  93. [surge_external_proxy]
  94. ;surge_ssr_path=/usr/bin/ssr-local
  95. [emojis]
  96. add_emoji=true
  97. remove_old_emoji=true
  98. ;Rule to add emojis. Supports regular expression.
  99. ;Format: Remark_Search_Pattern,emoji
  100. rule=(流量|时间|应急|过期|Bandwidth|expire),🏳️‍🌈
  101. rule=AC,🇦🇨
  102. rule=(AR|阿根廷),🇦🇷
  103. rule=(奥地利|维也纳),🇦🇹
  104. rule=(AU|Australia|Sydney|澳大利亚|悉尼),🇦🇺
  105. rule=BE,🇧🇪
  106. rule=(BR|Brazil|巴西|圣保罗),🇧🇷
  107. rule=(Canada|加拿大|蒙特利尔|温哥华|楓葉|枫叶),🇨🇦
  108. rule=(瑞士|苏黎世),🇨🇭
  109. rule=(DE|Germany|德国|法兰克福|德),🇩🇪
  110. rule=丹麦,🇩🇰
  111. rule=ES,🇪🇸
  112. rule=EU,🇪🇺
  113. rule=(Finland|芬兰|赫尔辛基),🇫🇮
  114. rule=(FR|France|法国|巴黎),🇫🇷
  115. rule=(UK|England|UnitedKingdom|英国|英|伦敦),🇬🇧
  116. rule=(HK|HongKong|香港|深港|沪港|呼港|HKT|HKBN|HGC|WTT|CMI|穗港|京港|港),🇭🇰
  117. rule=(Indonesia|印尼|印度尼西亚|雅加达),🇮🇩
  118. rule=(Ireland|爱尔兰|都柏林),🇮🇪
  119. rule=(India|印度|孟买),🇮🇳
  120. rule=(Italy|意大利|米兰),🇮🇹
  121. rule=(JP|Japan|日本|东京|大阪|埼玉|沪日|穗日|川日|中日|泉日|杭日),🇯🇵
  122. rule=(KP|朝鲜),🇰🇵
  123. rule=(KR|Korea|KOR|韩国|首尔|韩|韓),🇰🇷
  124. rule=(MO|Macao|澳门|CTM),🇲🇴
  125. rule=(MY|Malaysia|马来西亚),🇲🇾
  126. rule=(NL|Netherlands|荷兰|阿姆斯特丹),🇳🇱
  127. rule=(PH|Philippines|菲律宾),🇵🇭
  128. rule=(RO|罗马尼亚),🇷🇴
  129. rule=(RU|Russia|俄罗斯|伯力|莫斯科|圣彼得堡|西伯利亚|新西伯利亚|京俄|杭俄),🇷🇺
  130. rule=(沙特|迪拜),🇸🇦
  131. rule=(SE|Sweden),🇸🇪
  132. rule=(SG|Singapore|新加坡|狮城|沪新|京新|泉新|穗新|深新|杭新),🇸🇬
  133. rule=(TH|Thailand|泰国|曼谷),🇹🇭
  134. rule=(TR|Turkey|土耳其|伊斯坦布尔),🇹🇷
  135. rule=(US|America|UnitedStates|美国|美|京美|波特兰|达拉斯|俄勒冈|凤凰城|费利蒙|硅谷|拉斯维加斯|洛杉矶|圣何塞|圣克拉拉|西雅图|芝加哥|沪美),🇺🇲
  136. rule=(VN|越南),🇻🇳
  137. rule=(ZA|南非),🇿🇦
  138. rule=(CN|China|回国|中国|江苏|北京|上海|广州|深圳|杭州|常州|徐州|青岛|宁波|镇江|back|TW|Taiwan|台湾|台北|台中|新北|彰化|CHT|新北|台|HINET),🇨🇳
  139. [ruleset]
  140. ;Enable generating rules with rulesets
  141. enabled=true
  142. ;Overwrite the existing rules in rule_base
  143. overwrite_original_rules=false
  144. ;Perform a ruleset update on request
  145. update_ruleset_on_request=true
  146. ;Ruleset addresses, supports local files/URL
  147. ;Format: Group name,URL
  148. ; Group name,[]Rule
  149. ;surge_ruleset=DIRECT,https://raw.githubusercontent.com/ConnersHua/Profiles/master/Surge/Ruleset/Unbreak.list
  150. ;surge_ruleset=⛔️ 广告拦截,https://raw.githubusercontent.com/ConnersHua/Profiles/master/Surge/Ruleset/Advertising.list
  151. ;surge_ruleset=🚫 运营劫持,https://raw.githubusercontent.com/ConnersHua/Profiles/master/Surge/Ruleset/Hijacking.list
  152. ;surge_ruleset=🌌 YouTube,https://raw.githubusercontent.com/ConnersHua/Profiles/master/Surge/Ruleset/Media/YouTube.list
  153. ;surge_ruleset=🎥 NETFLIX,https://raw.githubusercontent.com/ConnersHua/Profiles/master/Surge/Ruleset/Media/Netflix.list
  154. ;surge_ruleset=HBO,https://raw.githubusercontent.com/ConnersHua/Profiles/master/Surge/Ruleset/Media/HBO.list
  155. ;surge_ruleset=Fox,https://raw.githubusercontent.com/ConnersHua/Profiles/master/Surge/Ruleset/Media/Fox.list
  156. ;surge_ruleset=🌍 国外媒体,https://raw.githubusercontent.com/ConnersHua/Profiles/master/Surge/Ruleset/GlobalMedia.list
  157. ;surge_ruleset=🌏 港台媒体,https://raw.githubusercontent.com/ConnersHua/Profiles/master/Surge/Ruleset/HKMTMedia.list
  158. ;surge_ruleset=📲 电报信息,https://raw.githubusercontent.com/ConnersHua/Profiles/master/Surge/Ruleset/Telegram.list
  159. ;surge_ruleset=🚀 节点选择,https://raw.githubusercontent.com/ConnersHua/Profiles/master/Surge/Ruleset/Global.list
  160. ;surge_ruleset=🍎 苹果服务,https://raw.githubusercontent.com/ConnersHua/Profiles/master/Surge/Ruleset/Apple.list
  161. ;surge_ruleset=DIRECT,https://raw.githubusercontent.com/ConnersHua/Profiles/master/Surge/Ruleset/China.list
  162. ;surge_ruleset=🎯 全球直连,rules/LocalAreaNetwork.list
  163. surge_ruleset=🎯 全球直连,rules/ACL4SSR/Clash/LocalAreaNetwork.list
  164. ; 普通广告拦截,只包含广告联盟,推荐加上,不影响使用
  165. surge_ruleset=🛑 全球拦截,rules/ACL4SSR/Clash/BanAD.list
  166. ; 应用广告拦截 不推荐加入 可能会产生副作用
  167. surge_ruleset=⛔ 应用拦截,rules/ACL4SSR/Clash/BanProgramAD.list
  168. ;surge_ruleset=🛑 全球拦截,rules/NobyDa/Surge/AdRule.list
  169. ;surge_ruleset=🛑 全球拦截,rules/ConnersHua/Surge/Ruleset/Hijacking.list
  170. surge_ruleset=🎯 全球直连,rules/ACL4SSR/Clash/ChinaDomain.list
  171. ;surge_ruleset=🎯 全球直连,rules/ACL4SSR/Clash/Apple.list
  172. ;surge_ruleset=🎯 全球直连,rules/ConnersHua/Surge/Ruleset/Unbreak.list
  173. ;surge_ruleset=🎯 全球直连,rules/ConnersHua/Surge/Ruleset/China.list
  174. ;surge_ruleset=🎯 全球直连,rules/NobyDa/Surge/Download.list
  175. ;surge_ruleset=🎥 NETFLIX,rules/ConnersHua/Surge/Ruleset/Media/Netflix.list
  176. surge_ruleset=🌍 国外媒体,rules/ConnersHua/Surge/Ruleset/GlobalMedia.list
  177. ;surge_ruleset=🌏 国内媒体,rules/lhie1/Surge3/AsianTV.list
  178. surge_ruleset=📲 电报信息,rules/ConnersHua/Surge/Ruleset/Telegram.list
  179. ;surge_ruleset=🚀 节点选择,rules/ConnersHua/Surge/Ruleset/Global.list
  180. ;surge_ruleset=🚀 节点选择,rules/ACL4SSR/Clash/ProxyGFWlist.list
  181. surge_ruleset=🚀 节点选择,rules/ACL4SSR/Clash/ProxyLite.list
  182. surge_ruleset=🍎 苹果服务,rules/ACL4SSR/Clash/Apple.list
  183. ;surge_ruleset=🍎 苹果服务,rules/ConnersHua/Surge/Ruleset/Apple.list
  184. ;surge_ruleset=🎯 全球直连,rules/ConnersHua/Surge/Ruleset/China.list
  185. ;surge_ruleset=🎯 全球直连,rules/NobyDa/Surge/Download.list
  186. ;surge_ruleset=🎯 全球直连,rules/ACL4SSR/Clash/ChinaIp.list
  187. surge_ruleset=🎯 全球直连,rules/ACL4SSR/Clash/ChinaCompanyIp.list
  188. surge_ruleset=🎯 全球直连,[]GEOIP,CN
  189. surge_ruleset=🐟 漏网之鱼,[]FINAL
  190. [clash_proxy_group]
  191. ;Generate Clash Proxy Group with the following patterns. Node filterting rule supports regular expression.
  192. ;Format: Group_Name`select`Rule_1`Rule_2`...
  193. ; Group_Name`url-test|fallback|load-balance`Rule_1`Rule_2`...`test_url`interval
  194. ;Rule with "[]" prefix will be added directly.
  195. ;custom_proxy_group=UrlTest`url-test`.*`http://www.gstatic.com/generate_204`300
  196. ;custom_proxy_group=FallBack`fallback`.*`http://www.gstatic.com/generate_204`300
  197. ;custom_proxy_group=LoadBalance`load-balance`.*`http://www.gstatic.com/generate_204`300
  198. ;custom_proxy_group=g1`select`!!GROUPID=0
  199. ;custom_proxy_group=g2`select`!!GROUPID=1
  200. ;custom_proxy_group=v2ray`select`!!GROUP=V2RayProvider
  201. ;custom_proxy_group=g1hk`select`!!GROUPID=0!!(HGC|HKBN|PCCW|HKT|hk|港)
  202. ;custom_proxy_group=sstw`select`!!GROUP=V2RayProvider!!(深台|彰化|新北|台|tw)
  203. ;for forcerule.yml
  204. ;custom_proxy_group=Proxy`select`.*`[]AUTO`[]DIRECT`.*
  205. ;custom_proxy_group=AUTO`url-test`.*`http://www.gstatic.com/generate_204`300
  206. ;custom_proxy_group=google`select`.*
  207. ;custom_proxy_group=netflix`select`.*
  208. ;custom_proxy_group=动画疯`select`(深台|彰化|新北|台)
  209. ;custom_proxy_group=fox+`select`(HGC|HKBN|PCCW|HKT|深台|彰化|新北|台|新加坡|sg|hk|tw)
  210. ;custom_proxy_group=美区影视`select`(美|美国)
  211. ;custom_proxy_group=Global_media`select`.*
  212. ;custom_proxy_group=Domestic`select`[]DIRECT`[]Proxy
  213. ;custom_proxy_group=Apple`select`[]DIRECT`[]Proxy
  214. ;custom_proxy_group=Final`select`[]Proxy`[]DIRECT
  215. ;custom_proxy_group=屏蔽广告`select`[]REJECT`[]DIRECT
  216. ;custom_proxy_group=UnblockNeteaseMusic`select`云音乐解锁`[]DIRECT
  217. ;custom_proxy_group=Telegram`select`新加坡`[]Proxy
  218. ;for Surge rulesets
  219. custom_proxy_group=🚀 节点选择`select`[]♻️ 自动选择`[]🎯 全球直连`.*
  220. custom_proxy_group=♻️ 自动选择`url-test`.*`http://www.gstatic.com/generate_204`300
  221. ;custom_proxy_group=🔯 故障转移`fallback`.*`http://www.gstatic.com/generate_204`300
  222. ;custom_proxy_group=🍀 负载均衡`load-balance`.*`http://www.gstatic.com/generate_204`300
  223. ;custom_proxy_group=🎥 NETFLIX`select`[]🚀 节点选择`[]♻️ 自动选择`[]🎯 全球直连`.*
  224. ;custom_proxy_group=⛔️ 广告拦截`select`[]🛑 全球拦截`[]🎯 全球直连`[]🚀 节点选择
  225. ;custom_proxy_group=🚫 运营劫持`select`[]🛑 全球拦截`[]🎯 全球直连`[]🚀 节点选择
  226. custom_proxy_group=🌍 国外媒体`select`[]🚀 节点选择`[]♻️ 自动选择`[]🎯 全球直连`.*
  227. ;custom_proxy_group=🌏 国内媒体`select`[]🎯 全球直连`(HGC|HKBN|PCCW|HKT|深台|彰化|新北|台|hk|港|tw)`[]🚀 节点选择
  228. custom_proxy_group=📲 电报信息`select`[]🚀 节点选择`.*`[]🎯 全球直连
  229. custom_proxy_group=🍎 苹果服务`select`[]🎯 全球直连`[]🚀 节点选择`[]♻️ 自动选择`.*
  230. custom_proxy_group=🎯 全球直连`select`[]DIRECT
  231. custom_proxy_group=🛑 全球拦截`select`[]REJECT`[]DIRECT
  232. custom_proxy_group=⛔ 应用拦截`select`[]REJECT`[]DIRECT
  233. custom_proxy_group=🐟 漏网之鱼`select`[]🚀 节点选择`[]♻️ 自动选择`[]🎯 全球直连`.*
  234. [server]
  235. ;Address to bind on for Web Server
  236. listen=0.0.0.0
  237. ;Port to bind on for Web Server
  238. port=8567
  239. [advanced]
  240. print_debug_info=false
  241. max_pending_connections=10240
  242. max_concurrent_threads=4