2024-01-06 08:36:59 +00:00
|
|
|
# 3X-UI
|
2023-05-12 17:48:52 +00:00
|
|
|
|
2024-02-28 11:05:01 +00:00
|
|
|
|
2024-03-10 14:29:24 +00:00
|
|
|
## 安装 & 更新
|
2023-04-18 07:01:52 +00:00
|
|
|
|
2024-01-29 20:45:20 +00:00
|
|
|
```
|
2024-03-10 14:29:24 +00:00
|
|
|
bash <(curl -Ls https://raw.githubusercontent.com/jiulingyun/3x-ui/tree/dev/install.sh)
|
2024-01-29 20:45:20 +00:00
|
|
|
```
|
|
|
|
|
2024-03-10 14:29:24 +00:00
|
|
|
## 安装指定版本
|
2024-02-19 07:35:27 +00:00
|
|
|
|
2024-03-10 14:29:24 +00:00
|
|
|
要安装所需的版本,请将该版本添加到安装命令的末尾。例如: `v2.2.1`:
|
2024-02-19 07:35:27 +00:00
|
|
|
|
2023-05-29 13:37:03 +00:00
|
|
|
```
|
2024-03-10 14:29:24 +00:00
|
|
|
bash <(curl -Ls https://raw.githubusercontent.com/jiulingyun/3x-ui/tree/dev/install.sh) v2.2.1
|
2023-05-29 13:37:03 +00:00
|
|
|
```
|
2023-05-30 22:27:01 +00:00
|
|
|
|
2024-03-10 14:29:24 +00:00
|
|
|
## API 路由
|
2023-05-30 22:27:01 +00:00
|
|
|
|
2023-05-29 14:12:49 +00:00
|
|
|
<details>
|
2024-03-10 14:29:24 +00:00
|
|
|
<summary>点击查看 API 路由详情</summary>
|
2024-01-15 10:15:08 +00:00
|
|
|
|
2024-03-10 14:29:24 +00:00
|
|
|
#### 使用
|
2024-01-06 08:36:59 +00:00
|
|
|
|
2023-07-04 08:35:40 +00:00
|
|
|
- `/login` with `POST` user data: `{username: '', password: ''}` for login
|
2023-05-13 21:12:29 +00:00
|
|
|
- `/panel/api/inbounds` base for following actions:
|
2023-04-11 19:39:29 +00:00
|
|
|
|
2023-04-18 07:01:52 +00:00
|
|
|
| Method | Path | Action |
|
|
|
|
| :----: | ---------------------------------- | ------------------------------------------- |
|
|
|
|
| `GET` | `"/list"` | Get all inbounds |
|
|
|
|
| `GET` | `"/get/:id"` | Get inbound with inbound.id |
|
2023-04-25 18:13:29 +00:00
|
|
|
| `GET` | `"/getClientTraffics/:email"` | Get Client Traffics with email |
|
2023-05-21 02:20:57 +00:00
|
|
|
| `GET` | `"/createbackup"` | Telegram bot sends backup to admins |
|
2023-04-18 07:01:52 +00:00
|
|
|
| `POST` | `"/add"` | Add inbound |
|
|
|
|
| `POST` | `"/del/:id"` | Delete Inbound |
|
|
|
|
| `POST` | `"/update/:id"` | Update Inbound |
|
|
|
|
| `POST` | `"/clientIps/:email"` | Client Ip address |
|
|
|
|
| `POST` | `"/clearClientIps/:email"` | Clear Client Ip address |
|
2023-04-25 18:13:29 +00:00
|
|
|
| `POST` | `"/addClient"` | Add Client to inbound |
|
2023-05-12 17:48:52 +00:00
|
|
|
| `POST` | `"/:id/delClient/:clientId"` | Delete Client by clientId\* |
|
|
|
|
| `POST` | `"/updateClient/:clientId"` | Update Client by clientId\* |
|
2023-04-18 07:01:52 +00:00
|
|
|
| `POST` | `"/:id/resetClientTraffic/:email"` | Reset Client's Traffic |
|
|
|
|
| `POST` | `"/resetAllTraffics"` | Reset traffics of all inbounds |
|
|
|
|
| `POST` | `"/resetAllClientTraffics/:id"` | Reset traffics of all clients in an inbound |
|
2023-04-25 18:13:29 +00:00
|
|
|
| `POST` | `"/delDepletedClients/:id"` | Delete inbound depleted clients (-1: all) |
|
2023-12-04 21:00:47 +00:00
|
|
|
| `POST` | `"/onlines"` | Get Online users ( list of emails ) |
|
2023-04-11 19:39:29 +00:00
|
|
|
|
2024-03-10 14:29:24 +00:00
|
|
|
\*- 字段“clientId”应由:
|
2023-05-12 17:48:52 +00:00
|
|
|
|
2024-03-10 14:29:24 +00:00
|
|
|
- `client.id` 适用于 VMESS 和 VLESS
|
|
|
|
- `client.password` 对于 TROJAN
|
|
|
|
- `client.email` 用于 Shadowsocks
|
2023-05-07 13:42:47 +00:00
|
|
|
|
2023-12-09 13:30:37 +00:00
|
|
|
|
|
|
|
- [API Documentation](https://documenter.getpostman.com/view/16802678/2s9YkgD5jm)
|
|
|
|
- [<img src="https://run.pstmn.io/button.svg" alt="Run In Postman" style="width: 128px; height: 32px;">](https://app.getpostman.com/run-collection/16802678-1a4c9270-ac77-40ed-959a-7aa56dc4a415?action=collection%2Ffork&source=rip_markdown&collection-url=entityId%3D16802678-1a4c9270-ac77-40ed-959a-7aa56dc4a415%26entityType%3Dcollection%26workspaceId%3D2cd38c01-c851-4a15-a972-f181c23359d9)
|
2023-05-29 14:12:49 +00:00
|
|
|
</details>
|