FastTunnel/FastTunnel.Client/appsettings.json

63 lines
1.6 KiB
JSON
Raw Normal View History

2019-12-16 10:29:06 +08:00
{
"Logging": {
"LogLevel": {
2020-11-01 12:27:29 +08:00
// Trace Debug Information Warning Error
2021-07-09 00:32:51 +08:00
"Default": "Trace",
2019-12-16 10:29:06 +08:00
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"ClientSettings": {
2021-06-13 00:18:34 +08:00
"Server": {
2021-07-04 22:36:12 +08:00
// 服务端ip/域名
2021-07-09 00:32:51 +08:00
//"ServerAddr": "my.com",
"ServerAddr": "127.0.0.1",
2021-07-04 22:36:12 +08:00
// 服务端监听的通信端口
2021-08-01 18:32:32 +08:00
"ServerPort": 1270
2019-12-16 10:29:06 +08:00
},
"Webs": [
{
// 本地站点所在内网的ip
"LocalIp": "127.0.0.1",
// 站点监听的端口号
2021-07-09 00:32:51 +08:00
"LocalPort": 8090,
2019-12-16 10:29:06 +08:00
2021-07-04 22:36:12 +08:00
// 子域名, 访问本站点时的url为 http://{SubDomain}.{WebDomain}:{WebProxyPort}/
"SubDomain": "test" // test.test.cc
2021-07-04 22:36:12 +08:00
// 附加域名需要解析域名A记录至服务的ip地址
// "WWW": [ "www.abc.com", "test111.test.cc" ]
2021-07-09 00:32:51 +08:00
},
{
"LocalIp": "127.0.0.1",
"LocalPort": 8091,
"SubDomain": "test1"
2019-12-20 22:14:43 +08:00
}
],
/**
2021-08-01 18:32:32 +08:00
*
* 访/mysql/erp/TCP
2021-07-04 22:36:12 +08:00
* linux#ssh -oPort=12701 {root}@{ServerAddr} ServerAddr iproot
* 访访
2019-12-20 22:14:43 +08:00
*/
2021-08-01 23:23:58 +08:00
"Forwards": [
2019-12-20 22:14:43 +08:00
{
2021-07-09 00:32:51 +08:00
"LocalIp": "127.0.0.1",
2021-07-04 22:36:12 +08:00
"LocalPort": 8090,
2021-07-09 00:32:51 +08:00
"RemotePort": 7090
},
{
"LocalIp": "127.0.0.1",
"LocalPort": 8091,
"RemotePort": 7091
2019-12-21 14:28:15 +08:00
},
{
2019-12-25 16:00:56 +08:00
"LocalIp": "192.168.0.91",
2019-12-21 14:28:15 +08:00
"LocalPort": 3389, // windows远程桌面端口为3389
2021-07-04 22:36:12 +08:00
"RemotePort": 1274 // 访问 服务端ip:1274 即可实现远程window桌面
2019-12-16 10:29:06 +08:00
}
]
}
}