基于SagerNet/Sing-Box构建的高级 Web 面板
提示:原alireza0/s-ui项目被Github官方封禁,本仓库是基于原版的最后一个版本v 1.4.1的完整备份,包含完整的前端和后端源码。
本仓库仅修改了默认语言和时区为中文,其他都对标原版无改动。你可以直接使用本仓库的脚本,也可以自行fork编译,同时也欢迎大佬们贡献(请PR到dev分支)
Note: The original alireza0/s-ui project has been blocked and removed by GitHub. This repository is a complete backup based on the last version v1.4.1 of the original, containing the full front-end and back-end source code. This repository only modifies the default language and time zone to Chinese, with no other changes compared to the original. You can directly use the scripts from this repository, or fork and compile it yourself.
Contributions are always welcome. If you'd like to help improve the project, please feel free to submit a PR to the dev branch.
免责声明: 本项目仅供个人学习与交流使用,请勿用于非法用途。
| 功能 | 是否支持 |
|---|---|
| 多协议 | ✔️ |
| 多语言 | ✔️ |
| 多客户端/入站 | ✔️ |
| 高级流量路由界面 | ✔️ |
| 客户端、流量与系统状态 | ✔️ |
| 订阅链接(link/json/clash + info) | ✔️ |
| 深色/浅色主题 | ✔️ |
| API 接口 | ✔️ |
| 平台 | 架构 | 状态 |
|---|---|---|
| Linux | amd64, arm64, armv7, armv6, armv5, 386, s390x | 支持 |
| Windows | amd64, 386, arm64 | 支持 |
| macOS | amd64, arm64 | 实验性支持 |
- 面板端口:2095
- 面板路径:/app/
- 订阅端口:2096
- 订阅路径:/sub/
- 用户名/密码:admin
bash <(curl -Ls https://raw.githubusercontent.com/admin8800/s-ui/main/install.sh)- 从 GitHub Releases 下载最新 Windows 版本。
- 解压 ZIP 文件。
- 以管理员身份运行
install-windows.bat。 - 按照安装向导操作。
步骤 1: 如果要安装指定旧版本,请在安装命令末尾追加带 v 的版本标签。例如版本 v1.0.0:
- 根据你的系统和架构,从 GitHub 获取最新版本 S-UI:https://github.com/admin8800/s-ui/releases/latest
- 可选: 获取最新版
s-ui.sh:https://raw.githubusercontent.com/admin8800/s-ui/main/s-ui.sh - 可选: 将
s-ui.sh复制到/usr/bin/,并执行chmod +x /usr/bin/s-ui。 - 将 s-ui tar.gz 文件解压到你选择的目录,并进入解压后的目录。
- 将
*.service文件复制到/etc/systemd/system/,然后执行systemctl daemon-reload。 - 使用
systemctl enable s-ui --now启用开机自启并启动 S-UI 服务。 - 使用
systemctl enable sing-box --now启动 sing-box 服务。
- 从 GitHub 获取最新 Windows 版本:https://github.com/admin8800/s-ui/releases/latest
- 下载适合的 Windows 包,例如
s-ui-windows-amd64.zip。 - 将 ZIP 文件解压到你选择的目录。
- 以管理员身份运行
install-windows.bat。 - 按照安装向导操作。
- 访问面板:http://localhost:2095/app
sudo -i
systemctl disable s-ui --now
rm -f /etc/systemd/system/sing-box.service
systemctl daemon-reload
rm -fr /usr/local/s-ui
rm /usr/bin/s-ui点击查看详情
步骤 1: 安装 Docker
curl -fsSL https://get.docker.com | sh步骤 2: 安装 S-UI
Docker compose 方式
services:
s-ui:
image: ghcr.io/admin8800/s-ui
container_name: s-ui
hostname: "s-ui"
network_mode: host
volumes:
- "./db:/app/db"
- "./cert:/app/cert"
tty: true
restart: unless-stopped
entrypoint: "./entrypoint.sh"docker compose up -d
直接使用 docker
mkdir s-ui && cd s-ui
docker run -itd \
--network host \
-v $PWD/db/:/app/db/ \
-v $PWD/cert/:/root/cert/ \
--name s-ui \
--restart=unless-stopped \
ghcr.io/admin8800/s-ui自行构建镜像
git clone https://github.com/admin8800/s-ui
docker build -t s-ui .点击查看详情
./runSUI.sh# 克隆仓库
git clone https://github.com/admin8800/s-ui前端代码请查看 frontend
请先至少构建一次前端。
构建后端:
# 删除旧的前端编译文件
rm -fr web/html/*
# 应用新的前端编译文件
cp -R frontend/dist/ web/html/
# 构建
go build -o sui main.go运行后端(在仓库根目录执行):
./sui- 英语
- 波斯语
- 越南语
- 简体中文
- 繁体中文
- 俄语
- 支持的协议:
- 通用协议:Mixed、SOCKS、HTTP、HTTPS、Direct、Redirect、TProxy
- 基于 V2Ray 的协议:VLESS、VMess、Trojan、Shadowsocks
- 其他协议:ShadowTLS、Hysteria、Hysteria2、Naive、TUIC
- 支持 XTLS 协议。
- 提供高级流量路由界面,支持 PROXY Protocol、External、透明代理、SSL 证书和端口配置。
- 提供高级入站和出站配置界面。
- 支持客户端流量上限和到期时间。
- 显示在线客户端、入站、出站流量统计和系统状态监控。
- 订阅服务支持添加外部链接和订阅。
- Web 面板和订阅服务支持 HTTPS 安全访问(需自行提供域名和 SSL 证书)。
- 深色/浅色主题。
点击查看详情
| 变量 | 类型 | 默认值 |
|---|---|---|
| SUI_LOG_LEVEL | "debug" | "info" | "warn" | "error" |
"info" |
| SUI_DEBUG | boolean |
false |
| SUI_BIN_FOLDER | string |
"bin" |
| SUI_DB_FOLDER | string |
"db" |
| SINGBOX_API | string |
- |
点击查看详情
snap install core; snap refresh core
snap install --classic certbot
ln -s /snap/bin/certbot /usr/bin/certbot
certbot certonly --standalone --register-unsafely-without-email --non-interactive --agree-tos -d <你的域名>