Alireza Ahmadi e3e7b0f736 Add favicon #125
2023-04-02 15:01:56 +02:00
2023-03-24 12:52:00 +01:00
2023-03-28 23:58:45 +02:00
2021-07-26 13:29:29 +08:00
2023-03-17 15:15:06 +01:00
2023-03-01 21:50:23 +01:00
2021-06-17 11:05:43 +08:00
2023-04-02 15:01:56 +02:00
2023-03-28 23:09:51 +02:00
2023-02-11 09:48:42 +01:00
2023-02-07 01:43:44 +01:00
2023-02-11 17:07:00 +01:00
2023-03-19 11:56:42 +01:00
2021-05-18 11:32:01 +08:00
2023-03-20 13:50:39 +01:00
2023-02-07 01:43:44 +01:00
2023-03-18 13:39:54 +03:30

x-ui

Go Report Card Downloads License

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,Farsi,Chinese)

Features Enable?
Multi-lang ✔️
Dark/Light Theme ✔️
Search in deep ✔️
Inbound Multi User ✔️
Multi User Traffic & Expiration time ✔️
REST API ✔️
Telegram BOT (admin + clients) ✔️
Backup database using Telegram BOT ✔️

If you think this project is helpful to you, you may wish to give a 🌟

Features

  • System Status Monitoring
  • Search within all inbounds and clients
  • Support Dark/Light theme UI
  • Support multi-user multi-protocol, web page visualization operation
  • Supported protocols: vmess, vless, trojan, shadowsocks, dokodemo-door, socks, http
  • Support for configuring more transport configurations
  • Traffic statistics, limit traffic, limit expiration time
  • Customizable xray configuration templates
  • Support https access panel (self-provided domain name + ssl certificate)
  • Support one-click SSL certificate application and automatic renewal
  • For more advanced configuration items, please refer to the panel

Screenshot from Inbouds page

inbounds Dark inbounds

Install & Upgrade to latest version

bash <(curl -Ls https://raw.githubusercontent.com/alireza0/x-ui/master/install.sh)

Install custom version

To install your desired version you can add the version to the end of install command. Example for ver 0.4.0:

bash <(curl -Ls https://raw.githubusercontent.com/alireza0/x-ui/master/install.sh) 0.4.0

Manual install & upgrade

  1. First download the latest compressed package from https://github.com/alireza0/x-ui/releases , generally choose Architecture amd64
  2. Then upload the compressed package to the server's /root/ directory and root rootlog in to the server with user

If your server cpu architecture is not amd64 replace 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

Install using docker

  1. install docker
curl -fsSL https://get.docker.com | sh
  1. install x-ui
mkdir x-ui && cd x-ui
docker run -itd \
    -p 54321:54321 -p 443:443 -p 80:80 \
    -e XRAY_VMESS_AEAD_FORCED=false \
    -v $PWD/db/:/etc/x-ui/ \
    -v $PWD/cert/:/root/cert/ \
    --name x-ui --restart=unless-stopped \
    alireza7/x-ui:latest

Build your own image

docker build -t x-ui .

SSL certificate application

Cloudflare

This feature and tutorial are provided by FranzKafkaYu

Certbot

snap install core; snap refresh core
snap install --classic certbot
ln -s /snap/bin/certbot /usr/bin/certbot

certbot certonly --standalone --register-unsafely-without-email --non-interactive --agree-tos -d <Your Domain Name>

Tg robot use

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:

  • Tg robot Token
  • Tg robot ChatId
  • Tg robot cycle runtime, in crontab syntax
  • Tg robot Expiration threshold
  • Tg robot Traffic threshold
  • Tg robot Enable send backup in cycle runtime
  • Tg robot Enable CPU usage alarm threshold

Reference syntax:

  • 30 * * * * * //Notify at the 30s of each point
  • @hourly // hourly notification
  • @daily // Daily notification (00:00 in the morning)
  • @every 8h // notify every 8 hours

Telegram Bot Features

  • Report periodic
  • Login notification
  • CPU threshold notification
  • Threshold for Expiration time and Traffic to report in advance
  • Support client report if client's telegram username is added to the end of email like 'test123@telegram_username'
  • Support telegram traffic report searched with UID (VMESS/VLESS) or Password (TROJAN) - anonymously
  • Menu based bot
  • Search client by email ( only admin )
  • Check all inbounds
  • Check server status
  • Check Exhausted users
  • Receive backup by request and in periodic reports

suggestion system

  • CentOS 7+
  • Ubuntu 16+
  • Debian 8+
  • Fedora 36+

common problem

Migrating from v2-ui

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-uiPanel settings and username passwords are not migrated

Please Close v2-ui and restart x-ui, otherwise the inbound of v2-ui will cause a port conflict with the inbound of x-ui

x-ui v2-ui

T-Shoots:

If you upgrade from an old version or other forks, for enable traffic for users you should do :

find this in config :

 "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

a special thanks to

Stargazers over time

Stargazers over time

Languages
JavaScript 84.5%
HTML 9.4%
Go 4.6%
Shell 0.9%
CSS 0.6%