612d68f56f
Go + Vue 管理台,SQLite 持久化;支持隧道/域名穿透、域名转发插件链、访客认证、 IP 规则、API Key、Docker 单镜像部署;配置通过 Web 系统设置管理,无需 YAML 文件。 Co-authored-by: Cursor <cursoragent@cursor.com>
39 lines
933 B
Makefile
39 lines
933 B
Makefile
# 运行参考(配置已迁移至 Web 管理台 → 系统设置,无需配置文件)
|
|
|
|
.PHONY: tidy build build-all dev-web web install dev run run-agent docker-push-amd64 docker-push-multiarch
|
|
|
|
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
|
|
|
|
docker-push-amd64:
|
|
chmod +x scripts/docker-build-push-amd64.sh
|
|
./scripts/docker-build-push-amd64.sh
|
|
|
|
docker-push-multiarch:
|
|
chmod +x scripts/docker-build-push-multiarch.sh
|
|
./scripts/docker-build-push-multiarch.sh
|