Skip to content

sy54dmin/g2ray

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

G2Ray

v2ray/g2ray Panel that supports multi-protocol and multi-user

Features

  • System status monitoring
  • Support multi-user and multi-protocol, web page visualization operation
  • Supported protocols: vmess, vless, trojan, shadowsocks, dokodemo-door, socks, http
  • Support to configure 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, see the panel for details

Install & Upgrade

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

Manual installation & upgrade

  1. First download the latest compressed package from https://github.com/vaxilu/x-ui/releases, generally choose amd64 architecture
  2. Then upload the compressed package to the /root/ directory of the server, and use the root user to log in to the server

If your server cpu architecture is not amd64, replace amd64 in the command with other architectures

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

This docker tutorial and docker images are provided by Chasing66

  1. Install docker
curl -fsSL https://get.docker.com | sh
  1. Install x-ui
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\
     enwaiax/x-ui:latest

Build your own image

docker build -t x-ui .

SSL certificate application

This function 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:

  • Know the Cloudflare registered email address
  • Know Cloudflare Global API Key
  • The domain name has been resolved to the current server through cloudflare

How to get Cloudflare Global API Key:

When using it, you only need to enter domain name, email, API KEY, the schematic diagram is as follows:

Precautions:

  • The script uses the DNS API for certificate requests
  • Use Let'sEncrypt as the CA party by default
  • The certificate installation directory is the /root/cert directory
  • The certificates applied for by this script are all wild domain name certificates

Tg robot use (under development, temporarily unavailable)

This function and tutorial are provided by FranzKafkaYu

X-UI supports daily traffic notification, panel login reminder and other functions through Tg robot. To use Tg robot, you need to apply for it yourself For specific application tutorials, please refer to [Blog Link] (https://coderfan.net/how-to-use-telegram-bot-to-alarm-you-when-someone-login-into-your-vps.html) Instructions for use: Set robot-related parameters in the background of the panel, including

  • Tg Robot Token
  • Tg Bot ChatId
  • Tg robot cycle running time, using crontab syntax

Reference syntax:

  • 30 * * * * * //Notify on the 30th of every minute
  • @hourly // hourly notification
  • @daily //Notification every day (0:00 AM)
  • @every 8h // notify every 8 hours

TG notification content:

  • Node traffic usage
  • Panel login reminder
  • Node expiration reminder
  • Traffic warning reminder

More functions are planned...

Suggestion system

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

About

International Customized Fork From X-UI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 87.9%
  • HTML 5.2%
  • Go 5.1%
  • Shell 1.5%
  • CSS 0.3%
  • Dockerfile 0.0%