Go + Vue 管理台:Agent 隧道、域名反代、IP 安全、访客验证与监控大盘。 Gitea Actions CI 多架构镜像;纯 Go SQLite、无 CGO Docker 构建。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
# 运行参考(配置已迁移至 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
|
||||
Reference in New Issue
Block a user