forked from chinnsenn/ClashCustomRule
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstashinsight4mac.stoverride
53 lines (44 loc) · 1.4 KB
/
stashinsight4mac.stoverride
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Stash Insight
desc: >-
本模块提供全面的Stash流量分析及规则优化建议,包含一个面板组件+网页分析报告+json API。
启用此模块后访问 http://clash.insight:9090/html 查看分析报告;访问 http://clash.insight:9090/json 获取API数据
external-controller: '127.0.0.1:9090'
secret:
hosts:
'clash.insight': 127.0.0.1
rules:
- DOMAIN,localhost,DIRECT
- DOMAIN,clash.insight,DIRECT
http:
mitm:
- "clash.insight"
force-http-engine:
- '*:9090'
script:
- match: ^https?://clash.insight:9090\/(go|html)$
name: clash-insight
type: response
require-body: false
timeout: 5
debug: false
argument: 'Stash,html,http://localhost:9090/connections,,stash'
- match: ^https?://clash.insight:9090/json$
name: clash-insight
type: response
require-body: false
timeout: 5
debug: false
argument: 'Stash,json,http://localhost:9090/connections,,stash'
tiles:
- name: clash-insight
interval: 30
title: 'Stash Insight'
content: '刷新中...'
icon: 'arrow.up.arrow.down.circle.fill'
backgroundColor: '#4CAF50'
argument: 'Stash,tile,http://localhost:9090/connections,,stash'
url: 'http://clash.insight:9090/html'
script-providers:
clash-insight:
url: https://raw.githubusercontent.com/RS0485/network-rules/main/scripts/clash-insight.js
interval: 86400