|
před 1 rokem | |
---|---|---|
.github | před 1 rokem | |
config | před 1 rokem | |
database | před 1 rokem | |
logger | před 1 rokem | |
media | před 1 rokem | |
util | před 1 rokem | |
v2ui | před 2 roky | |
web | před 1 rokem | |
xray | před 1 rokem | |
.gitignore | před 1 rokem | |
DockerInit.sh | před 1 rokem | |
Dockerfile | před 1 rokem | |
LICENSE | před 2 roky | |
README.md | před 1 rokem | |
docker-compose.yml | před 1 rokem | |
go.mod | před 1 rokem | |
go.sum | před 1 rokem | |
install.sh | před 1 rokem | |
main.go | před 1 rokem | |
x-ui.service | před 2 roky | |
x-ui.sh | před 1 rokem |
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
3x-ui panel supporting multi-protocol, Multi-lang (English,Farsi,Chinese,Russian)
If you think this project is helpful to you, you may wish to give a :star2:
Buy Me a Coffee :
TXncxkvhkDWGts487Pjqq1qT9JmwRUz8CC
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.5.0
:
bash <(curl -Ls https://raw.githubusercontent.com/mhsanaei/3x-ui/master/install.sh) v1.5.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
Install Docker:
bash <(curl -sSL https://get.docker.com)
Run 3x-ui:
docker compose up -d
OR
docker run -itd \
-e XRAY_VMESS_AEAD_FORCED=false \
-v $PWD/db/:/etc/x-ui/ \
-v $PWD/cert/:/root/cert/ \
--network=host \
--restart=unless-stopped \
--name 3x-ui \
ghcr.io/mhsanaei/3x-ui:latest
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/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) |
*- The field clientId
should be filled by:
client.id
for VMESS and VLESSclient.password
for TROJANclient.email
for Shadowsocks