v2ray-helper

command module
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2022 License: MulanPSL-2.0 Imports: 1 Imported by: 0

README

v2ray-helper

V2ray一键部署服务,支持对V2ray常用代理协议(TCP/KCP/WebSocket/HTTP2)的一键部署与服务伪装,可视化UI面板配置

特性

  • 可视化配置面板
  • 客户端配置管理
  • 服务器一键部署
  • VMess链接生成
  • 站点伪装(一键部署Cloudreve,暂未支持其他,有需要可以提交issue)
  • HTTPS证书管理(自动申请、续期)

alt 配置列表 alt 服务器部署

安装教程

可以下载已打包的二进制包或手动构建

mkdir /usr/local/v2ray-helper && tar zxf v2ray-helper-x.x.x.tgz -C /usr/local/v2ray-helper

手动构建

交叉编译

项目对sqlite有依赖,sqllite依赖CGO,所以在交叉编译时必须指定使用CC编译器

CGO_ENABLED=1 GOOS=linux GOARCH=amd64 CC=x86_64-linux-musl-gcc CGO_LDFLAGS="-static" go build ./v2ray-helper.go

MacOS安装交叉编译工具链

brew install FiloSottile/musl-cross/musl-cross

安装依赖工具

安装go-bindata

  • go get github.com/go-bindata/go-bindata/...
  • go install github.com/go-bindata/go-bindata/...

安装go-bindata-assetfs

  • go get github.com/elazarl/go-bindata-assetfs/...
  • go install github.com/elazarl/go-bindata-assetfs/...
打包

克隆项目到本地,执行./pack.sh进行打包,将打包后的v2ray-helper-x.x.x.tgz上传到服务器

使用说明

首次运行时将会在执行程序文件所在目录自动创建运行所需文件,或者通过参数--home指定运行时根目录

  • 直接运行: /usr/local/v2ray-helper/v2ray-helper run
  • 设置运行目录: /usr/local/v2ray-helper/v2ray-helper run --home /usr/local/v2ray-helper/v2ray-helper
安装为系统服务
  • /usr/local/v2ray-helper/v2ray-helper install 安装为系统服务
  • /usr/local/v2ray-helper/v2ray-helper install --home /usr/local/v2ray-helper/v2ray-helper 安装为系统服务并设置--home
  • /usr/local/v2ray-helper/v2ray-helper install --https --host your.host 安装为系统服务且启用TLS,此方式安装时必须提供域名

更多参数可通过--help查看,安装为服务后可通过systemd进行管理

  • 启动:service v2ray-helper start
  • 停止:service v2ray-helper stop
  • 重启:service v2ray-helper restart

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
common
staticfile
migrationstatic
Code generated by go-bindata.
Code generated by go-bindata.
webstatic
Code generated by go-bindata.
Code generated by go-bindata.
webstatic/webjs
Code generated by go-bindata.
Code generated by go-bindata.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL