|
1 년 전 | |
---|---|---|
.github | 1 년 전 | |
config | 1 년 전 | |
database | 1 년 전 | |
logger | 2 년 전 | |
media | 1 년 전 | |
util | 2 년 전 | |
v2ui | 2 년 전 | |
web | 1 년 전 | |
xray | 1 년 전 | |
.gitignore | 1 년 전 | |
LICENSE | 2 년 전 | |
README.md | 1 년 전 | |
go.mod | 1 년 전 | |
go.sum | 1 년 전 | |
install.sh | 1 년 전 | |
main.go | 1 년 전 | |
x-ui.service | 2 년 전 | |
x-ui.sh | 1 년 전 |
Disclaimer: This project is only for personal learning and communication, please do not use it for illegal purposes, please do not use it in a production environment
If you think this project is helpful to you, you may wish to give a :star2:
xray panel supporting multi-protocol, Multi-lang (English,Farsi,Chinese)
bash <(curl -Ls https://raw.githubusercontent.com/mhsanaei/3x-ui/master/install.sh)
To install your desired version you can add the version to the end of install command. Example for ver v1.3.0
:
bash <(curl -Ls https://raw.githubusercontent.com/mhsanaei/3x-ui/master/install.sh) v1.3.0
apt-get install certbot -y
certbot certonly --standalone --agree-tos --register-unsafely-without-email -d yourdomain.com
certbot renew --dry-run
or you can use x-ui menu then number '16' (Apply for an SSL Certificate)
Before you set ssl on settings
After you set ssl on settings
Variable | Type | Default |
---|---|---|
XUI_LOG_LEVEL | "debug" | "info" | "warn" | "error" |
"info" |
XUI_DEBUG | boolean |
false |
XUI_BIN_FOLDER | string |
"bin" |
XUI_DB_FOLDER | string |
"/etc/x-ui" |
Example:
XUI_BIN_FOLDER="bin" XUI_DB_FOLDER="/etc/x-ui" go build main.go
copy and paste to xray Configuration : (you don't need to do this if you have a fresh install)
If you want to use routing to WARP follow steps as below:
If you already installed warp, you can uninstall using below command:
warp u
Install WARP on socks proxy mode:
curl -fsSL https://gist.githubusercontent.com/hamid-gh98/dc5dd9b0cc5b0412af927b1ccdb294c7/raw/install_warp_proxy.sh | bash
Turn on the config you need in panel or Copy and paste this file to Xray Configuration
Config Features:
X-UI supports daily traffic notification, panel login reminder and other functions through the Tg robot. To use the Tg robot, you need to apply for the specific application tutorial. You can refer to the blog Set the robot-related parameters in the panel background, including:
Reference syntax:
/login
with PUSH
user data: {username: '', password: ''}
for login/xui/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 |
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 UID/Password as clientId |
POST |
"/updateClient/:clientId" |
Update Client by UID/Password as 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) |
TXncxkvhkDWGts487Pjqq1qT9JmwRUz8CC