FastTunnel/FastTunnel.Client/appsettings.json
2022-12-29 18:46:00 +08:00

74 lines
2.3 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"Serilog": {
"Using": [ "Serilog.Sinks.Console", "Serilog.Sinks.File" ],
"MinimumLevel": {
"Default": "Information",
"Override": {
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"WriteTo": [
//{
// "Name": "File",
// "Args": {
// "path": "Logs/log-.log",
// "rollingInterval": 3
// }
//}
]
},
"FastTunnel": {
"Server": {
// [必选] 服务端ip/域名来自服务端配置文件的urls参数
"ServerAddr": "127.0.0.1",
// [必选] 服务端监听的通信端口来自服务端配置文件的urls参数
"ServerPort": 1270
},
// [可选]服务端Token必须与服务端配置一致否则拒绝登录。
"Token": "TOKEN_FOR_CLIENT_AUTHENTICATION",
/**
* [] web
*/
"Webs": [
{
// [必选] 内网站点所在内网的ip
"LocalIp": "127.0.0.1",
// [必选] 内网站点监听的端口号
"LocalPort": 8090,
// [必选] 子域名, 访问本站点时的url为 http://${SubDomain}.${WebDomain}:${ServerPort}
"SubDomain": "test"
// [可选] 附加域名需要解析CNAME或A记录至当前子域名
// "WWW": [ "www.abc.com", "test111.test.cc" ]
}
],
/**
* []
* 穿TCP
* linux#ssh -oPort=12701 {root}@{ServerAddr} ServerAddr iproot
* 访访
*/
"Forwards": [
{
// [必选] 内网服务所在主机ip
"LocalIp": "127.0.0.1",
// [必选] 内网服务监听端口 windows远程桌面端口为3389
"LocalPort": 3389,
// [必选] 服务端端口 访问 服务端ip:1274 即可实现远程window桌面
"RemotePort": 1274,
// [可选] 通讯协议可选值TCP,UDP,默认值TCP
"Protocol": "TCP"
},
{
"LocalIp": "127.0.0.1",
"LocalPort": 3306, // mysql数据库默认端口
"RemotePort": 1275 // 访问 服务端ip:1275 即可连接内网的mysql服务
}
]
}
}