@softtynet/zplus-worker 1.0.31 → 1.0.34

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
@@ -53,9 +53,7 @@ npm install -g @softtynet/zplus-worker
53
53
  npx @softtynet/zplus-worker help
54
54
  ```
55
55
 
56
- #### Đăng nhập cho Worker trên VPS (Không cần Browser)
57
-
58
- ##### Cách A: Ghép nối 1-Click từ ZPlus Desktop (Khuyên dùng)
56
+ #### Ghép Nối Cho Worker Trên VPS / Máy Chủ (OAuth 2.1 Standard)
59
57
 
60
58
  Trên ZPlus Desktop: Vào **Cài Đặt** $\rightarrow$ **Worker & VPS Cluster** $\rightarrow$ Bấm **Tạo Lệnh Ghép Nối 1-Click Cho VPS** và dán lệnh vào VPS:
61
59
 
@@ -63,11 +61,7 @@ Trên ZPlus Desktop: Vào **Cài Đặt** $\rightarrow$ **Worker & VPS Cluster**
63
61
  npx @softtynet/zplus-worker login --pair="<TOKEN_TỪ_DESKTOP>"
64
62
  ```
65
63
 
66
- ##### Cách B: Đăng nhập bằng tài khoản Softty ID qua SSH Terminal
67
-
68
- ```bash
69
- npx @softtynet/zplus-worker login --email="admin@congty.com" --password="mat_khau_tai_day"
70
- ```
64
+ > 🛡️ **Tự động gia hạn 24/7:** Phiên ghép nối tích hợp OAuth 2.1 Refresh Token Rotation (RTR). Worker sẽ tự động làm mới phiên ngầm mỗi ngày mà không cần mở lại Desktop hay nhập mật khẩu.
71
65
 
72
66
  #### Kiểm tra trạng thái xác thực & phân quyền
73
67
 
@@ -94,9 +88,7 @@ pm2 save && pm2 startup
94
88
  | `zplus-worker doctor` | Chẩn đoán sức khỏe toàn diện: OS, RAM, Cloud API, Cổng Ingress, File |
95
89
  | `zplus-worker health` (hoặc `ping`) | Kiểm tra nhịp tim: Uptime, Nick đang chạy WSS, RAM chiếm dụng |
96
90
  | `zplus-worker logs` | Xem trực tiếp live logs tiến trình nền đang chạy (PM2 / Docker) |
97
- | `zplus-worker restart` | Khởi động lại dịch vụ Worker nền an toàn |
98
- | `zplus-worker login` | Đăng nhập tài khoản Softty ID |
99
- | `zplus-worker login --pair="<CODE>"` | Ghép nối 1-Click từ Desktop Client |
91
+ | `zplus-worker login --pair="<CODE>"` | Ghép nối 1-Click bảo mật từ Desktop (Hỗ trợ RTR tự gia hạn 24/7) |
100
92
  | `zplus-worker logout` | Đăng xuất và xóa phiên lưu trữ trên máy chủ |
101
93
  | `zplus-worker uninstall` | Dừng tiến trình PM2/Docker/Systemd và gỡ bỏ Worker an toàn |
102
94
  | `zplus-worker uninstall --purge` | Gỡ bỏ hoàn toàn kèm xóa sạch cache, dữ liệu & logs (~/.zplus) |
@@ -111,7 +103,7 @@ pm2 save && pm2 startup
111
103
 
112
104
  | Biến | Mặc định | Mô tả |
113
105
  | :-------------------- | :-------------------------- | :-------------------------------------------- |
114
- | `PORT` | `8080` | Cổng HTTP Ingress & Healthcheck (`/health`) |
106
+ | `PORT` | Không mở (Zero-Port) | Cổng HTTP tùy chọn khi bật `--enable-http` |
115
107
  | `WORKER_ID` | `worker_<pid>` | Tên định danh duy nhất của Worker Node |
116
108
  | `TEAM_ID` | `default` | ID của Team sở hữu Worker |
117
109
  | `DATA_DIR` | `~/.zplus` | Thư mục lưu phiên đăng nhập và cache tin nhắn |