has_local_mariadb_service() only checked if the systemd unit file existed, but not whether the mariadb-server package was actually installed. When the package was removed but the service file remained, the script would skip server installation and fail on restart. Now verifies the server package is installed via dpkg/rpm in addition to the unit file check. |
||
|---|---|---|
| .github | ||
| .vscode | ||
| cmd/genassets | ||
| config | ||
| database | ||
| docs | ||
| logger | ||
| media | ||
| sub | ||
| tests | ||
| util | ||
| web | ||
| windows_files | ||
| xray | ||
| .codex | ||
| .env.example | ||
| .gitignore | ||
| AGENTS.md | ||
| CONTRIBUTING.md | ||
| docker-compose.yml | ||
| DockerEntrypoint.sh | ||
| Dockerfile | ||
| DockerInit.sh | ||
| go.mod | ||
| go.sum | ||
| install.sh | ||
| LICENSE | ||
| main.go | ||
| main_test.go | ||
| README.ar_EG.md | ||
| README.es_ES.md | ||
| README.fa_IR.md | ||
| README.md | ||
| README.ru_RU.md | ||
| README.zh_CN.md | ||
| update.sh | ||
| x-ui.rc | ||
| x-ui.service.arch | ||
| x-ui.service.debian | ||
| x-ui.service.rhel | ||
| x-ui.sh | ||
English | فارسی | العربية | 中文 | Español | Русский
3X-UI — advanced, open-source web-based control panel designed for managing Xray-core server. It offers a user-friendly interface for configuring and monitoring various VPN and proxy protocols.
Important
This project is only for personal usage, please do not use it for illegal purposes, and please do not use it in a production environment.
As an enhanced fork of the original X-UI project, 3X-UI provides improved stability, broader protocol support, and additional features.
Quick Start
bash <(curl -Ls https://raw.githubusercontent.com/Sora39831/3x-ui/master/install.sh)
For full documentation, please visit the project Wiki.
Building from source
Generate fingerprinted frontend assets before compiling:
go run ./cmd/genassets
go build -ldflags "-w -s" -o build/x-ui main.go
Production builds embed files from web/public/assets and web/public/assets-manifest.json.
Multi-Node Shared Control
- use MariaDB as the shared control database
- keep one
masternode for shared-account writes - configure other nodes as
worker - workers rebuild local Xray config from synchronized snapshots
- traffic is flushed back as deltas, not absolute totals
A Special Thanks to
Acknowledgment
- Iran v2ray rules (License: GPL-3.0): Enhanced v2ray/xray and v2ray/xray-clients routing rules with built-in Iranian domains and a focus on security and adblocking.
- Russia v2ray rules (License: GPL-3.0): This repository contains automatically updated V2Ray routing rules based on data on blocked domains and addresses in Russia.
Support project
If this project is helpful to you, you may wish to give it a🌟