-
Notifications
You must be signed in to change notification settings - Fork 403
/
1\2\3_trojan-go_config.json
57 lines (57 loc) · 1.94 KB
/
1\2\3_trojan-go_config.json
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
{
"run_type": "server",
"local_addr": "127.0.0.1", //只监听本机,避免本机外的机器探测到下面端口。
"local_port": 6443, //监听端口
"remote_addr": "127.0.0.1",
"remote_port": 88, //h2与http/1.1回落共用此端口,回落到web服务器。需web服务器同一端口,同时支持h2c server与http/1.1 server应用。
"log_level": 1,
"log_file": "/var/log/trojan-go/error.log", //更改为自己的日志路径。
"password": [
"diy1155", //更改为自己的密码
"diy9125" //密码可以多个,用逗号隔开。也可删除仅保留一个。
],
"disable_http_check": false,
"udp_timeout": 60,
"ssl": {
"verify_hostname": true,
"cert": "/home/tls/zt.xx.yy/zt.xx.yy.crt", //换成自己的证书,绝对路径。
"key": "/home/tls/zt.xx.yy/zt.xx.yy.key", //换成自己的密钥,绝对路径。
"key_password": "",
"cipher": "",
"curves": "",
"prefer_server_cipher": true,
"sni": "*.xx.yy", //更改为自己的域名(可设置成通配符域名)
"alpn":[
"h2", //启用h2连接,web回落也需配置支持h2回落;否则不一致(裸奔),容易被墙探测出,从而被封。
"http/1.1" //启用http/1.1连接,web回落也需配置支持http/1.1回落;否则不一致(裸奔),容易被墙探测出,从而被封。
],
"session_ticket": true,
"reuse_session": true,
"plain_http_response": "",
"fallback_addr": "",
"fallback_port": 0
},
"tcp": {
"no_delay": true,
"keep_alive": true,
"prefer_ipv4": false
},
"websocket": {
"enabled": false, //默认关闭
"path": "/TrojanGo", //更改为自己的path
"host": "zt.xx.yy" //更改为自己的域名
},
"shadowsocks": {
"enabled": false,
"method": "AES-128-GCM",
"password": ""
},
"transport_plugin": {
"enabled": false,
"type": "plaintext",
"command": "",
"option": "",
"arg": [],
"env": []
}
}