Set up a fully configured Xray proxy server on a fresh Debian or Ubuntu VPS with a single command.
Automatically obtain and renew a TLS certificate from Let's Encrypt for your domain as part of the setup.
Retrieve the generated client connection settings from a known file path and connect with a compatible client app.
Requires a domain name with DNS A record pointing to your server before running, must be on a clean server without a pre-existing Nginx installation.
This repository is a one-click shell script that sets up an Xray proxy server on a Linux machine using Nginx, VLESS, and XTLS. Xray is an open source network proxy tool. VLESS and XTLS are protocols used by Xray to route traffic through a server. Nginx is a web server that the script uses to handle incoming connections and make the traffic appear as normal HTTPS web traffic. The script automates the full server configuration so that once it finishes running, you can connect a compatible client using the output configuration it prints. It automatically obtains and renews a TLS certificate from Let's Encrypt, which handles the encryption for the connection. The script is targeted at Debian 9 or later, Ubuntu 18.04 or later, and CentOS 7 or later running on a server where you control the domain name. Before running it you need a domain name with its DNS A record pointing to your server. The script installs Nginx and the latest Xray core, configures them together, and writes the resulting client connection details to a file at a known path so you can retrieve them after setup. Basic start and stop commands use systemctl to manage the V2ray and Nginx services. The README is written primarily in Chinese and includes notes about system time accuracy requirements, a warning not to use the script on systems that already have Nginx installed through another method, and a recommendation to run it on a clean server environment. Community support is available through a Telegram group.
← wulabing on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.