Updated Home (markdown)

snltty
2024-05-27 10:39:46 +08:00
parent 97c1634639
commit 2a56274455

50
Home.md

@@ -6,48 +6,16 @@
## 配置文件
1. 第一次运行后,在 configs/ 文件夹下,会生成配置文件,可以根据需要进行修改,然后再次运行
2. 有哪些端口不想监听,设置为 0 即可
3. 只需要管理 config.json 即可
3. common.json 公共配置
```
{
//客户端,仅 server 模式的话,这个不需要动
"Client": {
//信标服务器列表
"Servers": [ {"Name": "默认","Host": "127.0.0.1:1802"}],
//设备名
"Name": "DESKTOP-1RSJ",
//分组编号
"GroupId": "snltty",
//当前使用的信标服务器
"Server": "127.0.0.1:1802",
//客户端管理的配置
"CApi": { "ApiPort": 1803, "ApiPassword": "snltty", "WebPort": 1804, "WebRoot": "./web-client/" },
"Relay": {
//中继服务器列表
"Servers": [ {"Name": "默认","Type": 0,"SecretKey": "snltty", "Host": "127.0.0.1:1802","Disabled": false}]
},
"Tunnel": {
//外网端口的服务器列表
"Servers": [ { "Name": "默认","Type": 0, "Host": "127.0.0.1:1802", "Disabled": false }],
//加密证书
"Certificate": "./snltty.pfx",
"Password": "snltty"
}
},
"Common": {
//需要运行在哪个模式
"Modes": [ "client", "server" ]
},
//服务器配置,仅 client 模式的话,这个不需要动
"Server": {
//中继秘钥
"Relay": { "SecretKey": "snltty"},
//管理接口
"SApi": { "WebPort": 1800, "WebRoot": "./web/", "ApiPort": 1801, "ApiPassword": "snltty" },
//服务端口
"ServicePort": 1802,
//加密证书
"Certificate": "./snltty.pfx",
"Password": "snltty"
}
//运行在哪个模式下
"Modes": ["client","server"],
"LoggerType": 0,
"LoggerSize": 100,
//仅运行哪些插件
"IncludePlugins": [],
//排除哪些插件IncludePlugins为空时有效
"ExcludePlugins": []
}
```