mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-09-10 04:06:18 +00:00
57 lines
2.9 KiB
Markdown
57 lines
2.9 KiB
Markdown
# 3X-UI
|
|
|
|
|
|
## 安装 & 更新
|
|
|
|
```
|
|
bash <(curl -Ls https://raw.githubusercontent.com/jiulingyun/3x-ui/tree/dev/install.sh)
|
|
```
|
|
|
|
## 安装指定版本
|
|
|
|
要安装所需的版本,请将该版本添加到安装命令的末尾。例如: `v2.2.1`:
|
|
|
|
```
|
|
bash <(curl -Ls https://raw.githubusercontent.com/jiulingyun/3x-ui/tree/dev/install.sh) v2.2.1
|
|
```
|
|
|
|
## API 路由
|
|
|
|
<details>
|
|
<summary>点击查看 API 路由详情</summary>
|
|
|
|
#### 使用
|
|
|
|
- `/login` with `POST` user data: `{username: '', password: ''}` for login
|
|
- `/panel/api/inbounds` base for following actions:
|
|
|
|
| Method | Path | Action |
|
|
| :----: | ---------------------------------- | ------------------------------------------- |
|
|
| `GET` | `"/list"` | Get all inbounds |
|
|
| `GET` | `"/get/:id"` | Get inbound with inbound.id |
|
|
| `GET` | `"/getClientTraffics/:email"` | Get Client Traffics with email |
|
|
| `GET` | `"/createbackup"` | Telegram bot sends backup to admins |
|
|
| `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 |
|
|
| `POST` | `"/addClient"` | Add Client to inbound |
|
|
| `POST` | `"/:id/delClient/:clientId"` | Delete Client by clientId\* |
|
|
| `POST` | `"/updateClient/:clientId"` | Update Client by clientId\* |
|
|
| `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 |
|
|
| `POST` | `"/delDepletedClients/:id"` | Delete inbound depleted clients (-1: all) |
|
|
| `POST` | `"/onlines"` | Get Online users ( list of emails ) |
|
|
|
|
\*- 字段“clientId”应由:
|
|
|
|
- `client.id` 适用于 VMESS 和 VLESS
|
|
- `client.password` 对于 TROJAN
|
|
- `client.email` 用于 Shadowsocks
|
|
|
|
|
|
- [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)
|
|
</details>
|