|
1 year ago | |
---|---|---|
.github | 1 year ago | |
config | 1 year ago | |
database | 1 year ago | |
logger | 2 years ago | |
media | 1 year ago | |
util | 2 years ago | |
v2ui | 2 years ago | |
web | 1 year ago | |
xray | 1 year ago | |
.gitignore | 1 year ago | |
LICENSE | 2 years ago | |
README.md | 1 year ago | |
go.mod | 1 year ago | |
go.sum | 1 year ago | |
install.sh | 1 year ago | |
main.go | 1 year ago | |
x-ui.service | 2 years ago | |
x-ui.sh | 1 year ago |
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.0.9
:
bash <(curl -Ls https://raw.githubusercontent.com/mhsanaei/3x-ui/master/install.sh) v1.0.9
apt-get install certbot -y
certbot certonly --standalone --agree-tos --register-unsafely-without-email -d yourdomain.com
certbot renew --dry-run
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:
Install WARP on socks proxy mode:
curl -fsSL https://gist.githubusercontent.com/hamid-gh98/dc5dd9b0cc5b0412af927b1ccdb294c7/raw/install_warp_proxy.sh | bash
Copy and paste this file to Xray Configuration or Turn on the config you need in panel
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 |
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 |
"/delClient/:email" |
Delete Client |
POST |
"/updateClient/:index" |
Update Client |
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 |
TXncxkvhkDWGts487Pjqq1qT9JmwRUz8CC