Appearance
示例配置
json
{
"PidFile": "amy4.pid",
"AmyIns": [{
"ProxyType": "Dns",
"DnsSettings": {
"ListenAddr": ":10530"
}
}, {
"ProxyType": "Socks5",
"Socks5Settings": {
"ListenAddr": ":10800"
}
}],
"Log": {
"FilePath": "amy4.log"
},
"//": "以上内容不能修改",
"AmyOuts": [{
"Tag": "http",
"ProxyType": "http",
"HttpSettings": {
"DestAddrsStrategy": "IP",
"//": "HTTP模块",
"HttpModify": {
"DelLine": ["x-online-host", "host"],
"SetFirst": "[M] [U] [V]\r\n\tHost:tms.dingtalk.com\r\nHost:[H]\r\n"
},
"//": "HTTPS地址",
"TunnelAddrs": ["36.152.45.98:443"],
"//": "HTTPS模块",
"TunnelModify": {
"DelLine": ["host"],
"SetFirst": "[M] [H]tms.dingtalk.com [V]\r\n"
},
"//": "Http TCP连接池, Net模式下不支持(不设置DestAddrs)",
"HttpTCPPool": {
"MaxConn": 20,
"MinConn": 3,
"DialSpeed": 9,
"IdleSec": 57
},
"//": "Tunnel TCP连接池, 不设置则不开启",
"TunnelTCPPool": {
"MaxConn": 30,
"MinConn": 5,
"DialSpeed": 9,
"IdleSec": 57
}
}
}, {
"Tag": "ANet",
"ProxyType": "ANet",
"ANetSettings": {
"DestAddrsStrategy": "IP",
"DestAddrs": ["36.152.45.98:443"],
"FFHost": "tms.dingtalk.com",
"HTTPRequest": "CONNECT 服务器IP:服务器端口@tms.dingtalk.com HTTP/1.1\r\nUser-Agent: baiduboxapp\r\nX-T5-Auth: 1967948331\r\n\r\n",
"ServerKey": "服务器密码",
"//": "TCP连接池, 不设置则不开启",
"TCPPool": {
"MaxConn": 30,
"MinConn": 5,
"DialSpeed": 9,
"IdleSec": 57
}
}
}],
"Routers": [{
"OutTags": ["http"],
"Rules": {
"DNSQType": ["A", "AAAA"]
}
}, {
"OutTags": ["http"],
"Rules": {
"Network": ["tcp"],
"DPort": ["65", "80", "443", "2020", "4949", "6447", "8080", "8081", "8443", "9443", "11762", "14000", "21762", "31762", "33445", "41762", "49156", "51762", "61762"]
}
}, {
"OutTags": ["ANet"],
"Rules": {
"!Protocol": ["http"]
}
}]
}