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
xray panel supporting multi-protocol, Multi-lang (English,Chinese), IP Restrication Per Inbound
| Features | Enable? |
|---|---|
| Multi-lang | :heavy_check_mark: |
| IP Restriction | :heavy_check_mark: |
| Inbound Multi User | :heavy_check_mark: |
| Multi User Traffic & expire day | :heavy_check_mark: |
If you think this project is helpful to you, you may wish to give a :star2:
!!! NO NEED TO DO THIS IF YOU HAVE FRESH INSTALL
1 - open panel settings and tab xray related settings find "api": and put bellow code just before it :
```json
"log": {
"loglevel": "warning",
"access": "./access.log"
},
- change access log path as you want
2 - add **IP limit and Unique Email** for inbound(vmess & vless)
# Enable Multi User Traffic & Exprire Day

`!!! NO NEED TO DO THIS IF YOU HAVE FRESH INSTALL`
**for enable traffic for users you should do :**
find this in config :
``` json
"policy": {
"system": {
and add this just after "policy": { :
"levels": {
"0": {
"statsUserUplink": true,
"statsUserDownlink": true
}
},
the final output is like :
"policy": {
"levels": {
"0": {
"statsUserUplink": true,
"statsUserDownlink": true
}
},
"system": {
"statsInboundDownlink": true,
"statsInboundUplink": true
}
},
"routing": {
restart panel
bash <(curl -Ls https://raw.githubusercontent.com/4xmen/x-ui/master/install.sh)
amd64/root/ directory and root rootlog in to the server with userIf your server cpu architecture is not
amd64replace another architecture
cd /root/
rm x-ui/ /usr/local/x-ui/ /usr/bin/x-ui -rf
tar zxvf x-ui-linux-amd64.tar.gz
chmod +x x-ui/x-ui x-ui/bin/xray-linux-* x-ui/x-ui.sh
cp x-ui/x-ui.sh /usr/bin/x-ui
cp -f x-ui/x-ui.service /etc/systemd/system/
mv x-ui/ /usr/local/
systemctl daemon-reload
systemctl enable x-ui
systemctl restart x-ui
This docker tutorial and docker image are provided by 4xmen
curl -fsSL https://get.docker.com | sh
mkdir x-ui && cd x-ui
docker run -itd --network=host \
-v $PWD/db/:/etc/x-ui/ \
-v $PWD/cert/:/root/cert/ \
--name x-ui --restart=unless-stopped \
4xmen/x-ui:latest
Build your own image
docker build -t x-ui .
This feature and tutorial are provided by FranzKafkaYu
The script has a built-in SSL certificate application function. To use this script to apply for a certificate, the following conditions must be met:
How to get the Cloudflare Global API Key:

When using, just enter email, domain, API KEY and the schematic diagram is as follows:

Precautions:
This feature and tutorial are provided by FranzKafkaYu
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:
TG notification content:
Node traffic usage
More features are planned...
First install the latest version of x-ui on the server where v2-ui is installed, and then use the following command to migrate, which will migrate the native v2-ui All inbound account data to x-ui,Panel settings and username passwords are not migrated
Please
Close v2-uiandrestart x-ui, otherwise the inbound of v2-ui will cause aport conflict with the inbound of x-ui
x-ui v2-ui