alireza0/s-ui

GitHub Trending (daily) 工具

摘要

S-UI 是一个基于 SagerNet/Sing-Box 构建的高级 Web 面板,用于管理多协议代理配置,具备流量路由、订阅链接和多语言支持等功能。

一个高级 Web 面板 • 专为 SagerNet/Sing-Box 构建
查看原文
查看缓存全文

缓存时间: 2026/05/21 12:10

alireza0/s-ui 来源:https://github.com/alireza0/s-ui # S-UI 一款高级Web面板 • 基于SagerNet/Sing-Box构建

S-UI Docker pull Go Report Card (https://goreportcard.com/report/github.com/alireza0/s-ui) 下载量 (https://img.shields.io/github/downloads/alireza0/s-ui/total.svg) 许可证 (https://www.gnu.org/licenses/gpl-3.0.en.html)

免责声明: 本项目仅供个人学习交流,请勿用于非法用途,请勿在生产环境中使用

如果您觉得这个项目对您有帮助,不妨给个:star2:

想贡献代码? 请参阅 CONTRIBUTING.md 了解开发环境搭建、编码规范、测试以及拉取请求流程。

“请我喝杯咖啡” (https://www.buymeacoffee.com/alireza7)

快速概览

功能特性是否支持
多协议:heavy_check_mark:
多语言:heavy_check_mark:
多客户端/入站:heavy_check_mark:
高级流量路由界面:heavy_check_mark:
客户端、流量及系统状态:heavy_check_mark:
订阅链接(link/json/clash + 信息):heavy_check_mark:
深色/浅色主题:heavy_check_mark:
API 接口:heavy_check_mark:

支持的平台

平台架构状态
Linuxamd64, arm64, armv7, armv6, armv5, 386, s390x✅ 支持
Windowsamd64, 386, arm64✅ 支持
macOSamd64, arm64🚧 实验性

截图

“主界面” 其他UI截图 (https://github.com/alireza0/s-ui-frontend/blob/main/screenshots.md)

API 文档

API 文档 Wiki (https://github.com/alireza0/s-ui/wiki/API-Documentation)

默认安装信息

  • 面板端口:2095
  • 面板路径:/app/
  • 订阅端口:2096
  • 订阅路径:/sub/
  • 用户名/密码:admin

安装并升级到最新版本

Linux/macOS

bash <(curl -Ls https://raw.githubusercontent.com/alireza0/s-ui/master/install.sh)

Windows

  1. 从 GitHub Releases (https://github.com/alireza0/s-ui/releases/latest) 下载最新的 Windows 版本
  2. 解压 ZIP 文件
  3. 以管理员身份运行 install-windows.bat
  4. 按照安装向导操作

安装旧版本

步骤1: 要安装你想要的旧版本,请在安装命令末尾添加版本号。例如,版本 1.0.0

VERSION=1.0.0 && bash <(curl -Ls https://raw.githubusercontent.com/alireza0/s-ui/$VERSION/install.sh) $VERSION

手动安装

Linux/macOS

  1. 根据你的操作系统/架构从 GitHub 获取最新版本的 S-UI:https://github.com/alireza0/s-ui/releases/latest
  2. 可选 获取最新版本的 s-ui.sh:https://raw.githubusercontent.com/alireza0/s-ui/master/s-ui.sh
  3. 可选s-ui.sh 复制到 /usr/bin/ 并运行 chmod +x /usr/bin/s-ui
  4. 将 s-ui tar.gz 文件解压到你选择的目录,并导航到解压后的目录。
  5. 将 *.service 文件复制到 /etc/systemd/system/ 并运行 systemctl daemon-reload
  6. 使用 systemctl enable s-ui --now 启用自启动并启动 S-UI 服务。
  7. 使用 systemctl enable sing-box --now 启动 sing-box 服务。

Windows

  1. 从 GitHub 获取最新的 Windows 版本:https://github.com/alireza0/s-ui/releases/latest
  2. 下载相应的 Windows 包(例如 s-ui-windows-amd64.zip
  3. 将 ZIP 文件解压到你选择的目录
  4. 以管理员身份运行 install-windows.bat
  5. 按照安装向导操作
  6. 访问 http://localhost:2095/app 访问面板

卸载 S-UI

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

使用 Docker 安装

点击查看详情

使用方法

步骤1: 安装 Docker

curl -fsSL https://get.docker.com | sh

步骤2: 安装 S-UI

Docker compose 方式

mkdir s-ui && cd s-ui
wget -q https://raw.githubusercontent.com/alireza0/s-ui/master/docker-compose.yml
docker compose up -d

使用 docker

mkdir s-ui && cd s-ui
docker run -itd \
  -p 2095:2095 -p 2096:2096 -p 443:443 -p 80:80 \
  -v $PWD/db/:/app/db/ \
  -v $PWD/cert/:/root/cert/ \
  --name s-ui --restart=unless-stopped \
  alireza7/s-ui:latest

构建你自己的镜像

git clone https://github.com/alireza0/s-ui
git submodule update --init --recursive
docker build -t s-ui .

手动运行(贡献)

点击查看详情

构建并运行整个项目

./runSUI.sh

克隆仓库

# 克隆仓库
git clone https://github.com/alireza0/s-ui
# 克隆子模块
git submodule update --init --recursive

- 前端

请访问 s-ui-frontend (https://github.com/alireza0/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 协议、外部代理和透明代理、SSL 证书及端口
  • 用于入站和出站配置的高级界面
  • 客户端流量上限和过期时间
  • 显示在线客户端、入站和出站流量统计以及系统状态监控
  • 订阅服务,支持添加外部链接和订阅
  • 通过 HTTPS 安全访问 Web 面板和订阅服务(需自备域名 + SSL 证书)
  • 深色/浅色主题

环境变量

点击查看详情

使用方法

变量类型默认值
SUI_LOG_LEVEL"debug" | "info" | "warn" | "error""info"
SUI_DEBUGbooleanfalse
SUI_BIN_FOLDERstring"bin"
SUI_DB_FOLDERstring"db"
SINGBOX_APIstring-

SSL 证书

点击查看详情

Certbot

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 <域名>

随时间增长的星标数

随时间增长的星标数 (https://starchart.cc/alireza0/s-ui)

相似文章

ibelick/ui-skills

GitHub Trending (daily)

UI Skills 是一个面向设计工程师的 CLI 工具,用于引导 AI 代理通过适当的 UI 技能集,提供启动、列出类别和获取技能的命令。

agegr/pi-web

GitHub Trending (daily)

pi-web 是一个用于 pi coding agent 的本地 Web 用户界面,在浏览器工作区中提供会话浏览、实时聊天、模型配置和文件预览。

@canghe: https://x.com/canghe/status/2064983863349403998

X AI KOLs Timeline

OpenSquilla 是一个开源项目,通过 MetaSkill 3.0 实现 Agent 自组织技能编排,结合智能路由降低 token 成本。作者将其集成到 WeSight 中,演示了一句话将公众号文章转成小红书图文的功能,展示了 Agent 自我组合工作流的潜力。