admin ed33412f04
Build way-node / Build and Push (push) Successful in 1m0s
fix(ci): 修正 act_runner 里的挂载路径问题
第一次构建失败:
  docker run -v "$PWD":/src golang:1.26 go test ./internal/...
  → pattern ./internal/...: directory prefix internal does not contain main module

根因:act_runner 的 job 容器里 $PWD 是容器内路径,而 docker.sock 连的是宿主
docker,所以 -v 挂进去的是空目录。

改法:
- 去掉 workflow 里的 docker run(test / cross compile 两处)
- 编译交给 Dockerfile 的多阶段构建(golang:1.26-alpine builder 阶段)
- 二进制从构建好的镜像里 docker cp 出来,供 install.sh 下载
- 用 Gitea API 建 release 并上传资产(替代 softprops/action-gh-release)
2026-11-27 11:43:03 +08:00

way-node

Node backend for Xboard. Supports sing-box / xray-core dual kernels.

Disclaimer: This project is for educational and learning purposes only.

Features

  • Protocols: V2Ray family, Trojan, Shadowsocks, Hysteria2, TUIC, AnyTLS
  • Sync: WebSocket push + REST polling dual channel
  • User controls: speed limit, device limit, alive-IP tracking, hot update
  • Deploy modes: node mode, machine mode, standalone mode
  • Multi-instance: single process binding multiple panels / nodes

Install

Docker

docker run -d --restart=always --network=host \
  -e apiHost=https://panel.com -e apiKey=TOKEN -e nodeID=1 \
  git.viaeon.com/admin/way-node:latest

Docker Compose

git clone -b compose --depth 1 https://git.viaeon.com/admin/way-node.git
cd way-node
vim config/config.yml   # set panel.url / token / node_id
docker compose up -d

Installer (Linux systemd)

# Node mode
curl -fsSL https://git.viaeon.com/admin/way-node/raw/branch/dev/install.sh | \
  sudo bash -s -- --mode node --panel https://panel.example.com --token TOKEN --node-id 1

# Machine mode
curl -fsSL https://git.viaeon.com/admin/way-node/raw/branch/dev/install.sh | \
  sudo bash -s -- --mode machine --panel https://panel.example.com --token TOKEN --machine-id 1

## xbctl

Run `xbctl` after installation for help. Common commands:

```bash
xbctl list                          # list all instances
xbctl status                        # running status
xbctl bind add-node --panel URL --token TOKEN --node-id 1
xbctl bind add-machine --panel URL --token TOKEN --machine-id 1
xbctl bind remove-node --panel URL --node-id 1
xbctl service restart

Configuration

Legacy single-panel config is fully compatible. Appending bindings auto-migrates to instances format. See config.yml.example.

Extensions

License

MPL-2.0.

S
Description
WAY node agent - forked from xboard-node
Readme
471 KiB
2026-11-27 12:09:31 +08:00
Languages
Go 95.4%
Shell 4%
Makefile 0.3%
Dockerfile 0.3%