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 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`、`addresses`(本机公网 IPv4/IPv6)、`siteDirectory`(真实网站目录,含 index.html),以及 `email`(ACME 申请证书,要求域名已指向本机)或 `certificate` + `privateKey`(导入现有证书,域名可以暂不指向本机)。可选:`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 开启时自动放行所需端口。
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
- 管理凭据写入 `config/admin-credentials.json`(0600);大屏只监听虚拟网地址 `http://10.20.0.1:8000`。
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 credentials: '+path.join(settings.root||serverRoot,'config/admin-credentials.json'));
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,3 +1,3 @@
1
1
  {
2
- "vlan": "6072eedb95a63fa48effa3a1836f86e2a8efa4adec45ba6abd0523a852e72477"
2
+ "vlan": "ce9363e6befe389ca60d6a0984dd5a975264fd6b91df65ad4b547ff6a6350046"
3
3
  }
@@ -1 +1 @@
1
- a18288df4bff19b2864341bdb4e4c1ddf51cc111a3049fb012dcf9f7d33a32b15441425cc9ac36de2dbf5e5401e8d9fc7aaefdf83749116c1b145f3eb0594d0d
1
+ a04720cae16643e2e5b92bd44a0558db60ee1e5b12860bd49b83c5dc538033209c979fcea301532b5860f12a822f6f93b18b8df19f3e12748f77e20c3f26b804
Binary file
@@ -1,3 +1,3 @@
1
1
  {
2
- "vlan": "19f9db0077c14c8cffbe669fc1d510bbe1a91f57eaa8c1017c2495f6e249629b"
2
+ "vlan": "2761da0df4dfb63bdcd0b9c99e4bca992b3d24979725b1e1742da14f9912e2fe"
3
3
  }
@@ -1 +1 @@
1
- 97e6d467618cd050161d20e328f5e06cf4543ea4b994732d47a3cdaf948b9f6c255e4009ddd3c6858acb53690ebdc39df23ac19913599cc5f20750856cba8107
1
+ 9ba89263b273bdc173544960404c0269cde0b6197adc62ed63e362f54b21f006e2c0facdf52baf109c4256495231154115a99943310099fd5b92ccdc973e430f
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yuze-vlan-server",
3
- "version": "2.0.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.6.1"
31
+ "yuze-vlan-recovery": "0.7.0"
32
32
  },
33
33
  "publishConfig": {
34
34
  "registry": "https://registry.npmjs.org/",