yuze-vlan-server 2.0.2 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/bin/cli.mjs +1 -1
- package/native/linux-arm64/manifest.json +1 -1
- package/native/linux-arm64/release.sig +1 -1
- package/native/linux-arm64/vlan +0 -0
- package/native/linux-x64/manifest.json +1 -1
- package/native/linux-x64/release.sig +1 -1
- package/native/linux-x64/vlan +0 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -9,9 +9,9 @@ yuze-vlan-server init --config init.json --dry-run
|
|
|
9
9
|
yuze-vlan-server init --config init.json
|
|
10
10
|
```
|
|
11
11
|
|
|
12
|
-
`init.json` 必填 `domain
|
|
12
|
+
`init.json` 必填 `domain`(客户端使用的名字)、`addresses`(本机公网 IPv4/IPv6)、`siteDirectory`(真实网站目录,含 index.html)、`emails`(可登录大屏的邮箱或 `@域名`)、`mail`(发登录验证码的 SMTP:`host`、`port`、`user`、`passwordFile`),以及 `email`(ACME 申请证书,要求所有名字已指向本机)或 `certificate` + `privateKey`(导入现有证书,域名可以暂不指向本机)。可选:`aliases`(证书上的其他名字)、`site`(网站规范名字,其余名字跳转过去)、`name`(核心的入口名,默认 `core`)、`ports`(默认 TCP `[443, 64332, 61443]`、UDP `[443]`、跳跃 UDP `60000–65535`)、`hopListen`(默认 47010)、`recoveryPort`(默认 64333)、`network`(默认 `10.20.0.0/16`)、`network6`(默认随机 ULA /64)、`root`(默认 `/opt/yuze-vlan-server`)。ufw 开启时自动放行所需端口。
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
大屏只监听虚拟网地址 `http://10.20.0.1:8000`,用名单里的邮箱收验证码登录;网站下的随机路径是网页网关的登录页,登录后可访问大屏里配置的网页路由。地址与登录页记录在 `config/admin-credentials.json`(0600)。
|
|
15
15
|
|
|
16
16
|
```sh
|
|
17
17
|
yuze-vlan-server status
|
package/bin/cli.mjs
CHANGED
|
@@ -50,7 +50,7 @@ try{
|
|
|
50
50
|
// service's own config.json is the single copy. A failed setup keeps it for a retry.
|
|
51
51
|
const recoveryProfile=path.join(settings.root||serverRoot,'config/recovery.json');
|
|
52
52
|
run(process.execPath,[recoveryCli(),'setup','--profile',recoveryProfile]);fs.rmSync(recoveryProfile);
|
|
53
|
-
console.log('Core server and recovery server installed. Dashboard
|
|
53
|
+
console.log('Core server and recovery server installed. Dashboard and login page: '+path.join(settings.root||serverRoot,'config/admin-credentials.json'));
|
|
54
54
|
}
|
|
55
55
|
}else if(command==='upgrade'){
|
|
56
56
|
// Replace the binary, restart, and roll back if the server does not come up.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
a04720cae16643e2e5b92bd44a0558db60ee1e5b12860bd49b83c5dc538033209c979fcea301532b5860f12a822f6f93b18b8df19f3e12748f77e20c3f26b804
|
package/native/linux-arm64/vlan
CHANGED
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
9ba89263b273bdc173544960404c0269cde0b6197adc62ed63e362f54b21f006e2c0facdf52baf109c4256495231154115a99943310099fd5b92ccdc973e430f
|
package/native/linux-x64/vlan
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yuze-vlan-server",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "Core server of Yuze VLAN: install, upgrade and operate the relay that owns every client and entry decision",
|
|
5
5
|
"bin": {
|
|
6
6
|
"yuze-vlan-server": "bin/cli.mjs"
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"license": "UNLICENSED",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"yuze-vlan-recovery": "0.
|
|
31
|
+
"yuze-vlan-recovery": "0.7.0"
|
|
32
32
|
},
|
|
33
33
|
"publishConfig": {
|
|
34
34
|
"registry": "https://registry.npmjs.org/",
|