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": {
|
2021-08-25 00:04:58 +08:00
|
|
|
|
// 与服务端通讯协议
|
|
|
|
|
"Protocol": "ws", // ws(http)或wss(https)
|
2021-07-04 22:36:12 +08:00
|
|
|
|
// 服务端ip/域名
|
2021-08-25 00:04:58 +08:00
|
|
|
|
"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
|
2020-09-21 16:49:05 +08:00
|
|
|
|
|
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 填入服务端ip,root对应内网用户名
|
|
|
|
|
* 通过服务端返回的访问方式进行访问即可
|
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
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|