mirror of
https://gitcode.com/JianFeeeee/webui4frpc.git
synced 2026-10-03 23:53:59 +00:00
chore: remove local testing scripts, docker demo env, and screenshots from repo
- gitignore deploy/ and gui-test-screenshots/ (local dev artifacts, not for repo) - README: remove deploy section and build path reference - Files kept on disk for local use, just untracked
This commit is contained in:
27
README.md
27
README.md
@ -57,7 +57,7 @@ rm -rf internal/httpapi/dist && cp -r web/dist internal/httpapi/dist
|
||||
一键全量构建:
|
||||
|
||||
```bash
|
||||
cd web && npm run build && cd .. && cp -r web/dist/* internal/httpapi/dist/ && go build -o deploy/artifacts/webui4frpc ./cmd/webui4frpc
|
||||
cd web && npm run build && cd .. && cp -r web/dist/* internal/httpapi/dist/ && go build -o webui4frpc ./cmd/webui4frpc
|
||||
```
|
||||
|
||||
## 运行
|
||||
@ -173,31 +173,6 @@ webui4frpc(单二进制,无 frp 依赖,前端 go:embed)
|
||||
|
||||
集群页展示:环拓扑(self/leader 标记)、令牌轮次、节点负载、待办任务、活跃转发拓扑(含 owner 归属)、增量事件日志。
|
||||
|
||||
## 集群演示
|
||||
|
||||
```bash
|
||||
# 构建
|
||||
go build -o deploy/artifacts/webui4frpc ./cmd/webui4frpc
|
||||
|
||||
# 拉起 4 节点集群 + 1 孤立节点(Docker)
|
||||
cd deploy && bash run-cluster.sh
|
||||
|
||||
# 运行转发测试(提交 4 条转发 → 验证分发 → 撤销)
|
||||
bash test-forward.sh
|
||||
```
|
||||
|
||||
节点端口映射:
|
||||
|
||||
| 节点 | 端口 | 角色 |
|
||||
|---|---|---|
|
||||
| node-a | 7501 | 集群 leader(seed,有 frpc 缓存) |
|
||||
| node-b | 7502 | 集群成员 |
|
||||
| node-c | 7503 | 集群成员 |
|
||||
| node-d | 7504 | 集群成员 |
|
||||
| node-e | 7505 | 孤立节点(standalone,未加入集群) |
|
||||
|
||||
所有节点 `-user=admin -password=admin123`。
|
||||
|
||||
## 测试
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user