-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsurgio.conf.js
152 lines (146 loc) · 4.2 KB
/
surgio.conf.js
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
'use strict'
// export https_proxy=http://127.0.0.1:7890;export http_proxy=http://127.0.0.1:7890;export all_proxy=socks5://127.0.0.1:7890
const {
utils
} = require('surgio')
const {
categories
} = require('surgio')
/**
* 使用文档:https://surgio.royli.dev/
*/
module.exports = {
/**
* 远程片段
* 文档:https://surgio.royli.dev/guide/custom-config.html#remotesnippets
*/
remoteSnippets: [{
url: 'https://raw.githubusercontent.com/LM-Firefly/Rules/master/Microsoft.list',
name: 'Microsoft',
},
{
url: 'https://raw.githubusercontent.com/DivineEngine/Profiles/master/Surge/Ruleset/China.list',
name: 'China',
},
{
url: 'https://raw.githubusercontent.com/DivineEngine/Profiles/master/Surge/Ruleset/Unbreak.list',
name: 'Unbreak',
},
{
url: 'https://raw.githubusercontent.com/DivineEngine/Profiles/master/Surge/Ruleset/Global.list',
name: 'Global',
},
{
url: 'https://raw.githubusercontent.com/DivineEngine/Profiles/master/Surge/Ruleset/Guard/Advertising.list',
name: 'Advertising',
},
{
url: 'https://raw.githubusercontent.com/DivineEngine/Profiles/master/Surge/Ruleset/Guard/Privacy.list',
name: 'Privacy',
},
{
url: 'https://raw.githubusercontent.com/DivineEngine/Profiles/master/Surge/Ruleset/Guard/Hijacking.list',
name: 'Hijacking',
},
{
url: 'https://raw.githubusercontent.com/DivineEngine/Profiles/master/Surge/Ruleset/StreamingMedia/Video/HBO.list',
name: 'HBO',
},
{
url: 'https://raw.githubusercontent.com/DivineEngine/Profiles/master/Surge/Ruleset/StreamingMedia/Live/Twitch.list',
name: 'Twitch',
},
{
url: 'https://raw.githubusercontent.com/DivineEngine/Profiles/master/Surge/Ruleset/StreamingMedia/Music/Spotify.list',
name: 'Spotify',
},
{
url: 'https://raw.githubusercontent.com/DivineEngine/Profiles/master/Surge/Ruleset/StreamingMedia/Music/SoundCloud.list',
name: 'SoundCloud',
},
{
url: 'https://raw.githubusercontent.com/DivineEngine/Profiles/master/Surge/Ruleset/StreamingMedia/Music/YouTube-Music.list',
name: 'YouTubeMusic',
},
{
url: 'https://raw.githubusercontent.com/DivineEngine/Profiles/master/Surge/Ruleset/StreamingMedia/Video/DisneyPlus.list',
name: 'DisneyPlus',
},
{
url: 'https://raw.githubusercontent.com/DivineEngine/Profiles/master/Surge/Ruleset/StreamingMedia/Video/Pornhub.list',
name: 'Pornhub',
},
{
url: 'https://raw.githubusercontent.com/DivineEngine/Profiles/master/Surge/Ruleset/StreamingMedia/Video/YouTube.list',
name: 'YouTube',
},
{
url: 'https://raw.githubusercontent.com/DivineEngine/Profiles/master/Surge/Ruleset/StreamingMedia/Video/Netflix.list',
name: 'Netflix',
},
{
url: 'https://raw.githubusercontent.com/DivineEngine/Profiles/master/Surge/Ruleset/Extra/Telegram/TelegramSG.list',
name: 'TelegramSG',
},
{
url: 'https://raw.githubusercontent.com/Tartarus2014/For-own-use/master/Ruleset/Clash/Game.list',
name: 'Games',
},
{
url: 'https://raw.githubusercontent.com/DivineEngine/Profiles/master/Surge/Ruleset/StreamingMedia/Video/Prime-Video.list',
name: 'PrimeVideo',
},
],
/**
* 自定义过滤器
*/
customFilters: {
EmbyFilter: (nodeConfig) => nodeConfig.nodeName.includes('0.3x'),
mayingExtraNodeFilter: utils.discardKeywords(['应急续费节点']),
},
artifacts: [
/**
* Surge
*/
{
name: 'Surge5.conf', // 新版 Surge
template: 'surge_v5',
provider: 'example',
categories: [categories.SURGE],
},
/**
* Clash
*/
{
name: 'Clash.yaml',
template: 'auto_clash',
provider: 'example',
categories: [categories.CLASH],
},
/**
* Quantumult X
*/
{
name: 'QX.conf',
template: 'quantumultx',
provider: 'example',
categories: [categories.QUANTUMULT_X],
},
{
name: 'QX_subscribe.conf',
template: 'quantumultx_subscribe',
provider: 'example',
categories: [categories.QUANTUMULT_X_SERVER],
},
],
urlBase: 'https://xxxxx.netlify.app/get-artifact/',
surgeConfig: {
v2ray: 'native',
},
analytics: true,
gateway: {
auth: true,
accessToken: 'token',
viewerToken: 'token',
},
}