Skip to content

Latest commit

 

History

History
105 lines (68 loc) · 6.34 KB

README.md

File metadata and controls

105 lines (68 loc) · 6.34 KB

Xray supports Reality / VLESS WebSocket/gRPC+TLS protocol + Nginx one-click installation script

简体中文 | English | Русский | فارسی | 한국어

GitHub stars GitHub forks GitHub issues

Thanks for non-commercial open source development authorization by JetBrains

Usage Instructions

Telegram Group

Preparation

  • Prepare a server running outside China with a public IP.
  • If installing Reality protocol, find a domain name that meets Xray's requirements.
  • If installing TLS version, prepare a domain name and add an A record.
  • Read the Xray official documentation to understand Reality TLS WebSocket gRPC and related information about Xray, including the domain name requirements for Reality target.
  • Ensure curl is installed, CentOS users run: yum install -y curl; Debian/Ubuntu users run: apt install -y curl.

Installation Method

Copy and run:

bash <(curl -Ss https://www.idleleo.com/install.sh)

Notes

  • If you do not understand the specific meanings of each setting in the script, except for required fields, please use the default values provided by the script (press Enter all the way through).
  • Cloudflare users should enable CDN functionality after installation.
  • Using this script requires basic Linux knowledge and experience, understanding of computer network basics, and basic computer operations.
  • Currently supports Debian 9+ / Ubuntu 18.04+ / Centos7+, some Centos templates may have difficult-to-handle compilation issues; it is suggested to switch to other system templates if compilation issues occur.
  • The author provides limited support, as they are quite笨.
  • The sharing link is an experimental version, future changes are possible, please confirm whether your client supports it.
  • Mapping custom strings to UUIDv5 requires client support.

Acknowledgments

Certificate

If you already have certificate files for the domain you are using, rename the crt and key files to xray.crt and xray.key and place them in the /etc/idleleo/cert directory (create the directory if it does not exist). Please note the permissions and validity period of the certificate file; self-signed certificates need to be renewed manually after expiration.

The script supports automatically generating Let's Encrypt certificates, valid for 3 months, theoretically these certificates support automatic renewal.

View Client Configuration

cat /etc/idleleo/xray_info.txt

Introduction to Xray

  • Xray is an excellent open-source network proxy tool that helps you enjoy internet smoothly, currently supporting Windows, Mac, Android, IOS, Linux, etc.
  • This script is a one-click complete configuration script; once all processes run normally, set up the client according to the output results to use.
  • Note: We still strongly recommend that you fully understand the entire program's workflow and principles.

Suggest Single Proxy per Server

  • This script defaults to installing the latest version of Xray core.
  • It is recommended to use the default port 443 as the connection port.
  • The disguise content can be replaced at will.

Other Notes

  • It is recommended to use this script in a clean environment; beginners are advised not to use the Centos system.
  • Before applying this program to production environments, ensure it works correctly.
  • This program depends on Nginx to implement related functions; users who have previously installed Nginx using LNMP or similar scripts should pay special attention, as using this script may cause unpredictable errors.
  • Centos system users should pre-open relevant ports in the firewall (default: 80, 443).

Startup Methods

Start Xray: systemctl start xray

Stop Xray: systemctl stop xray

Start Nginx: systemctl start nginx

Stop Nginx: systemctl stop nginx

Related Directories

Xray server configuration: /etc/idleleo/conf/xray/config.json

Nginx directory: /usr/local/nginx

Certificate files: /etc/idleleo/cert/xray.key and /etc/idleleo/cert/xray.crt, please note the permission settings of the certificate file

Configuration information files, etc.: /etc/idleleo