FastTunnel/FastTunnel.Client/appsettings.json

56 lines
1.6 KiB
JSON
Raw Normal View History

2019-12-16 10:29:06 +08:00
{
2021-08-13 00:55:55 +08:00
"Logging": {
"LogLevel": {
// Trace Debug Information Warning Error
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
2021-08-07 23:54:48 +08:00
"EnableFileLog": false,
2019-12-16 10:29:06 +08:00
"ClientSettings": {
2021-06-13 00:18:34 +08:00
"Server": {
// 与服务端通讯协议
"Protocol": "ws", // ws(http)或wss(https)
2021-07-04 22:36:12 +08:00
// 服务端ip/域名
"ServerAddr": "test.cc",
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
},
2021-08-08 22:27:36 +08:00
// 服务端Token验证
"Token": "TOKEN_FOR_CLIENT_AUTHENTICATION",
2021-08-05 01:30:28 +08:00
/**
* 访
* 穿TCP
*/
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" ]
2019-12-20 22:14:43 +08:00
}
],
/**
2021-08-05 01:30:28 +08:00
*
* 穿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",
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
}
]
}
}