Files
Wormhole/Makefile
T
rose_cat707 0d84b07f68
CI / docker (push) Successful in 1m58s
feat: Wormhole 内网穿透与反向代理网关
Go + Vue 管理台:Agent 隧道、域名反代、IP 安全、访客验证与监控大盘。
Gitea Actions CI 多架构镜像;纯 Go SQLite、无 CGO Docker 构建。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-23 17:52:43 +08:00

31 lines
675 B
Makefile

# 运行参考(配置已迁移至 Web 管理台 → 系统设置,无需配置文件)
.PHONY: tidy build build-all dev-web web install dev run run-agent
export GOENV := $(CURDIR)/go.env
export GOPROXY ?= https://goproxy.cn,direct
export GOSUMDB ?= sum.golang.google.cn
tidy:
go mod tidy
web:
cd web && npm install --registry=https://registry.npmmirror.com && npm run build
build: web
go build -o bin/wormhole ./cmd/wormhole
build-all: build
dev-web:
cd web && npm run dev
run:
go run ./cmd/wormhole server
run-agent:
go run ./cmd/wormhole agent -server 127.0.0.1:8528 -key $(KEY)
install:
cd web && npm install --registry=https://registry.npmmirror.com