As a security tool, wulabing/Xray_onekey has picked up 9.3k stars on GitHub (Shell). Xray 基于 Nginx 的 VLESS + XTLS 一键安装脚本
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
Thanks for non-commercial open source development authorization by JetBrains!
Nested TLS caused by placing Nginx in front may lead to connection blocking. REALITY is now the recommended option — please head to the address below
https://github.com/wulabing/xray_docker
❤️ Sponsors
Want to appear here? Feel free to reach out via an issue or the Telegram group
Thanks to CapybaraCode for sponsoring this project — the very first sponsorship this project has received, and I truly appreciate the recognition! A stable, low-latency API relay service for Claude Code / AI coding. Works out of the box, pay-as-you-go, and smooth enough for daily coding work. Enter the promo code WULABING when signing up to get an extra $4 in credit.
Thanks to UHDNOW for sponsoring this project! A carefully maintained private Emby server with a full catalogue of 4K / IMAX remuxes, Dolby Vision and HDR sources, multiple direct-connect routes and instant seeking. Worth a look if you are into home media.
If you do not understand what a given setting in the script means, use the default value provided by the script for everything except the domain name;
Using this script requires Linux fundamentals and hands-on experience, some knowledge of computer networking, and basic computer skills;
The maintainer provides only very limited support. If you run into problems, feel free to ask other members in the group.
Supported Systems
Distribution
Version requirement
Notes
Debian
10+
Debian 12 / 13 recommended
Ubuntu
20.04+
Rocky Linux
8+
AlmaLinux
8+
Oracle Linux
7+
CentOS
7+ / Stream
CentOS 7 reached EOL on 2024-06-30. Official repositories have moved to vault.centos.org; the script prints a warning and continues, but dependency installation may fail. Switching to another distribution is recommended
Known Limitations
The WebSocket transport has been marked as deprecated by Xray. Since Xray-core v26.1.23, using the ws transport prints a deprecation warning in the startup log (The feature WebSocket transport (with ALPN http/1.1, etc.) is deprecated, not recommended for using and might be removed.), and it may be removed in a future release. This warning is emitted before the log file is created, so it is only visible in journalctl -u xray and never appears in /var/log/xray/error.log.
This script uses an Nginx-in-front + nested TLS structure, which can be targeted and blocked. Migrating to REALITY / XHTTP is recommended for the long run — see wulabing/xray_docker.
Fixes in v1.4.1
Fixed dependency installation failing on Debian 13 (#487): Debian 13 removed libpcre3-dev, but the script still installed it as part of a single apt install command, so the whole command failed and packages listed alongside it — including openssl — were never installed. Those pcre / zlib / openssl development packages are leftovers from the days when Nginx was compiled from source; Nginx is now installed as a binary from the official repository and no longer needs them, so they have all been removed.
Port-in-use check no longer force-kills Nginx (#469): the script used to kill -9 whatever occupied port 80. When that was a running Nginx, nginx.service was left in failed (Result: signal) state. It now tries systemctl stop nginx first and only falls back to kill -9 if the port is still held.
Fixed limits.conf corruption: when /etc/security/limits.conf does not end with a newline (as on some distributions and cloud images), the appended * soft nofile 65536 was concatenated onto the previous line, both corrupting the existing limit and defeating the line-anchored cleanup logic — repeated installs kept accumulating garbage lines, and the file-descriptor tuning never actually took effect. A newline is now added before appending.
BBR script source validation (#490): when the upstream ylx2016/Linux-NetSpeed repository misbehaves it may serve an outdated script. The script now validates the source and prints its version before executing, and aborts if validation fails.
Fixes in This Maintenance Release (v1.4.0)
Important notice for existing users: if your node was installed with v1.3.11 or earlier, its inbound TLS configuration never actually loaded any certificate, so clients cannot complete the TLS handshake. Please reinstall, or manually rename "xtlsSettings" to "tlsSettings" in /usr/local/etc/xray/config.json and then run systemctl restart xray.
Fixed the inbound TLS not loading any certificate (critical): xtlsSettings in the configuration template has not been a valid field since Xray-core v1.8.1. Unknown JSON fields are silently ignored, so security: "tls" fell back to an empty TLS configuration and certificates never took effect. The field has been renamed to tlsSettings.
Fixed certificate renewal always failing on non-443 ports: the previous approach temporarily rewrote the Nginx configuration by line number with sed to allow /.well-known/acme-challenge/. Under normal conditions port 80 also unconditionally 301-redirects that path to https, so renewal only succeeded by luck when the CA followed the redirect to 443; once the port had been changed via menu item 13 it failed 100% of the time. That location is now permanently present in Nginx, making issuance and renewal independent of the port Xray listens on. Commented-out configuration lines are no longer left behind when issuance fails.
Fixed the permanently false-positive domain IP check: ipget.net now returns 403. The check uses dig to query A / AAAA records, falling back to getent when dig is unavailable.
Certificate permissions: the renewal --reloadcmd now also fixes ownership of /ssl, so Xray can still read the certificate after renewal; the owner is taken from User= in the systemd unit. Also fixed the deprecated chown user.group dot syntax and the omission of the /ssl directory itself.
acme.sh: --upgrade --auto-upgrade is executed after installation, preventing renewal failures caused by CA API changes on older versions.
Post-install self-check: added xray run -test and nginx -t validation; the script errors out and exits on failure.
Configuration templates embedded in the script: config/*.json, web.conf and nginx.repo are no longer fetched from GitHub during installation, so network hiccups can no longer produce a half-installed setup.
Compatibility: added support for Rocky Linux / AlmaLinux / CentOS Stream; nginx >= 1.25.1 now uses the http2 on; directive; the jq fallback download picks amd64 / arm64 based on CPU architecture; on IPv6-only machines the DNS64 configuration is appended to /etc/resolv.conf instead of overwriting it; timeouts were added to network requests everywhere, so the menu no longer hangs when GitHub is unreachable.
Share links: removed the long-broken security=xtls links and QR codes, added the missing encryption=none / type / sni / host parameters, and the WebSocket path is now urlencoded (multi-level paths are no longer mangled).
Acknowledgements
The Project_Xray image in this README was provided by Blitzcrank (Telegram: @Blitz_crank) — many thanks to Blitzcrank;
The MTProxyTLS part of this script is a modified version of https://github.com/sunpma/mtp — thanks to sunpma;
The original 4-in-1 LotServer script is referenced from https://www.94ish.me/1635.html — thanks;
The modified 4-in-1 LotServer script is referenced from https://github.com/ylx2016/Linux-NetSpeed — thanks to ylx2016;
The configuration files and part of the logic reference https://github.com/jiuqi9997/xray-yes — thanks to 玖柒;
The QR code API part references https://github.com/mack-a/v2ray-agent — thanks to mack-a.
Service Control
Start Xray: systemctl start xray
Stop Xray: systemctl stop xray
Start Nginx: systemctl start nginx
Stop Nginx: systemctl stop nginx
Relevant Paths
Web directory: /www/xray_web
Xray server configuration: /usr/local/etc/xray/config.json
Nginx directory: /etc/nginx
Certificate files: /ssl/xray.key (private key) and /ssl/xray.crt (public certificate)
Support This Project
If you would like to support me, you can buy servers / proxies through my affiliate links:
No homepage URL was recorded for wulabing/Xray_onekey in TopGit's last sync. The README tab above frequently contains screenshots and demo links, or check the repository description on GitHub.
Is wulabing/Xray_onekey open source?
Yes — wulabing/Xray_onekey ships under the MIT license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/wulabing/Xray_onekey.
What else is in the Security space?
wulabing/Xray_onekey is tracked by TopGit under the Security category, alongside 8 GitHub-tagged topics. Trending and Topics pages list peer repositories of comparable stars and language.
What is wulabing/Xray_onekey?
wulabing/Xray_onekey (wulabing/Xray_onekey) is a Shell project on GitHub. From the project's own README: Xray 基于 Nginx 的 VLESS + XTLS 一键安装脚本
What license does wulabing/Xray_onekey use?
wulabing/Xray_onekey is released under the MIT license. Always verify the LICENSE file directly on GitHub for the authoritative terms — license strings can be edited out of sync with a project's actual stance.
Where do I read more about wulabing/Xray_onekey?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/wulabing/Xray_onekey is the definitive source.
Why is wulabing/Xray_onekey categorized under Security?
TopGit places wulabing/Xray_onekey in the Security category based on its GitHub topics and description (tagged: "nginx", "tls", "v2ray"). Categories are assigned from real repository metadata, not editorial guesswork.
Read full README in the tab above.
Curious whether Xray_onekey is right for you?
Let ChatGPT, Claude, or Perplexity look into it — click below and see what AI actually says about Xray_onekey.