š New S-UI SagerNet/Sing-Box distributed multi-node support š³ Forked: alireza7/s-ui
10K+
An advanced Web Panel built for SagerNet/Sing-Box
S-UI supports a distributed multi-node architecture:
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā S-UI Panel (Main Control) ā
ā ā
ā āāāāāāāāāāāāāāā āāāāāāāāāāāāāāā āāāāāāāāāāāāāāā ā
ā ā Web UI ā ā Config Mgr ā ā Node Mgr ā ā
ā āāāāāāāāāāāāāāā āāāāāāāāāāāāāāā āāāāāāāāāāāāāāā ā
ā ā ā
ā ā¼ ā
ā āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā ā
ā ā HTTP Management API ā ā
ā āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā
āāāāāāāāāāāāāāāāāā¼āāāāāāāāāāāāāāāāā
ā¼ ā¼ ā¼
āāāāāāāāāāāāāāā āāāāāāāāāāāāāāā āāāāāāāāāāāāāāā
ā Agent Node 1ā ā Agent Node 2ā ā Agent Node Nā
ā (hk1) ā ā (us1) ā ā (jp1) ā
āāāāāāāāāāāāāāā āāāāāāāāāāāāāāā āāāāāāāāāāāāāāā
| Component | Mode | Description |
|---|---|---|
| Panel | panel | Main control server - manages web UI, configurations, and coordinates all agent nodes |
| Agent | agent | Remote node - executes proxy tasks, reports status to panel |
docker run -d \
--name s-ui \
--restart unless-stopped \
-p 2097:2097 \
-p 51443:443/udp \
-v ./db:/app/db \
-v ./cert:/app/cert \
zhengxiongzhao/s-ui:latest
After deployment, access the Web Panel at:
http://<your-server-ip>:2095/app/login
| Item | Value |
|---|---|
| Panel Port | 2095 |
| Panel Path | /app/ |
| Subscription Port | 2096 |
| Subscription Path | /sub/ |
| Default User/Password | admin / admin |
ā ļø Important: Please change the default password immediately after first login!
docker run -d \
--name s-ui-panel \
--restart unless-stopped \
--network host \
-e SUI_MODE=panel \
-v ./db:/app/db \
-v ./cert:/app/cert \
zhengxiongzhao/s-ui:latest
# Agent Node 1 (e.g., Hong Kong)
docker run -d \
--name s-ui-agent-hk1 \
--restart unless-stopped \
-p 2097:2097 \
-p 51443:443/udp \
-e SUI_MODE=agent \
-e SUI_NODE_TOKEN=your-secure-token-here \
-v ./agent-hk1:/app/db \
zhengxiongzhao/s-ui:latest
# Agent Node 2 (e.g., US)
docker run -d \
--name s-ui-agent-us1 \
--restart unless-stopped \
-p 2098:2097 \
-p 51444:443/udp \
-e SUI_MODE=agent \
-e SUI_NODE_TOKEN=your-secure-token-here \
-v ./agent-us1:/app/db \
zhengxiongzhao/s-ui:latest
services:
# Panel (main control server)
s-ui-panel:
image: zhengxiongzhao/s-ui:latest
restart: unless-stopped
network_mode: host
environment:
- SUI_MODE=panel
volumes:
- ./test-db:/app/db
- ./test-cert:/app/cert
# Agent (remote node hk1)
s-ui-agent-hk1:
image: zhengxiongzhao/s-ui:latest
restart: unless-stopped
ports:
- "2097:2097"
- "51443:443/udp"
environment:
- SUI_MODE=agent
- SUI_NODE_TOKEN=test-token-hk1-12345
volumes:
- ./test-agent-hk1:/app/db
| Variable | Type | Default | Description |
|---|---|---|---|
SUI_MODE | "panel" | "agent" | "panel" | Running mode: panel (main control) or agent (remote node) |
SUI_NODE_TOKEN | string | - | Authentication token for agent registration (required for agent mode) |
SUI_LOG_LEVEL | "debug" | "info" | "warn" | "error" | "info" | Log level |
SUI_DEBUG | boolean | false | Enable debug mode |
SUI_BIN_FOLDER | string | "bin" | Path to binary folder |
SUI_DB_FOLDER | string | "db" | Path to database folder |
SINGBOX_API | string | - | Sing-Box API address |
| Port | Protocol | Description |
|---|---|---|
2095 | TCP | Web Panel (Default) |
2096 | TCP | Subscription (Default) |
2097 | TCP | Agent Management API |
443 | UDP | Proxy traffic (Sing-Box) |
| Path | Description |
|---|---|
/app/db | database and configuration |
/app/cert | TLS certificates |
This project is licensed under the GPL-3.0 License.
Contributions are welcome! Please feel free to submit issues and pull requests.
Built with ā¤ļø for the SagerNet/Sing-Box community
Content type
Image
Digest
sha256:18fa25a77ā¦
Size
36 MB
Last updated
about 1 month ago
docker pull zhengxiongzhao/s-ui