-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfig.example.yaml
More file actions
132 lines (132 loc) · 2.8 KB
/
config.example.yaml
File metadata and controls
132 lines (132 loc) · 2.8 KB
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
#开启调试
debug: true
#本项目名称
project_name: VPN会员系统
#gin监听的地址
gin_addr: :80
#访问项目的域名,端口默认80(如webhook所用)
domain: https://www.domain.com
#clash默认配置文件
clash_path: clash.yaml
#放置静态文件的目录
static_dir: static
# gin日志文件
gin_log_path: log/gin.log
# 运行日志文件
run_log_path: log/run.log
# 时区
tz: Asia/Shanghai
# 客户端订阅配置
subscribe:
# 文件命名,避免重复修改, clash客户端可能会存在多个订阅配置
filename: "config.yaml"
# 更新间隔(小时)
update_interval: 24
# 卡片链接
page_url: https://twbworld.github.io/proxy
# 数据库配置
database:
#数据库类型(sqlite|mysql); 小应用sqlite, 大应用mysql
type: sqlite
#sqlite文件路径
sqlite_path: "proxy.db"
# mysql地址
mysql_host: ""
# mysql端口
mysql_port: 3306
# mysql数据库名
mysql_dbname: ""
# mysql用户名
mysql_username: ""
# mysql密码
mysql_password: ""
# Telegram聊天室配置
telegram:
# 聊天室token(BotFather创建)
token: "0123456789:AAxxxx"
# 用户id(userinfobot获取)
id: 123456789
# 允许跨域的域名
cors:
- "*"
proxies:
# vless-tcp-vision-reality
- name: "外网信息复杂_理智分辨真假_reality"
type: vless
server: x.x.x.x
port: 443
uuid: x-x-x-x-x
tls: true
udp: true
flow: xtls-rprx-vision
servername: www.tesla.com
network: tcp
client-fingerprint: chrome
reality-opts:
public-key: xxx
short-id: ""
# vless-tcp-vision
- name: ""
type: vless
server: x.x.x.x
port: 443
uuid: x-x-x-x-x
udp: true
tls: true
flow: xtls-rprx-vision
servername: x.x.x.x
network: tcp
client-fingerprint: chrome
skip-cert-verify: false
alpn:
- h2
- http/1.1
root: true
# cdn上行vless-xhttp,下行reality
- name: ""
type: vless
server: x.x.x.x
port: 443
uuid: x-x-x-x-x
network: xhttp
tls: true
udp: true
servername: x.x.x.x
client-fingerprint: chrome
alpn:
- h2
skip-cert-verify: false
xhttp-opts:
mode: auto
path: "/xxx"
extra:
downloadSettings:
address: 1.1.1.1
port: 443
network: xhttp
security: reality
realitySettings:
serverName: www.tesla.com
fingerprint: chrome
show: false
publicKey: xxx
shortId: ""
xhttpSettings:
path: "/xxx"
mode: auto
# cdn:VLESS-grpc
- name: ""
type: vless
server: x.x.x.x
port: 443
uuid: x-x-x-x-x
udp: true
tls: true
servername: x.x.x.x
network: grpc
grpc-opts:
grpc-service-name: xxx
client-fingerprint: chrome
alpn:
- h2
skip-cert-verify: false