GithubHelp home page GithubHelp logo

tchigher / v2ray_ws-tls_bash_onekey Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wulabing/xray_onekey

0.0 0.0 0.0 194 KB

V2Ray Nginx+vmess+ws+tls/ http2 over tls 一键安装脚本

License: MIT License

Shell 100.00%

v2ray_ws-tls_bash_onekey's Introduction

V2Ray 基于 Nginx 的 vmess+ws+tls 一键安装脚本

感谢 JetBrains 提供的非商业开源软件开发授权

Thanks for non-commercial open source development authorization by JetBrains

注意事项

  • 如果你不了解脚本中各项设置的具体含义,除域名外,请使用脚本提供的默认值
  • 使用本脚本需要你拥有 Linux 基础及使用经验,了解计算机网络部分知识,计算机基础操作
  • 目前支持Debian 9+ / Ubuntu 18.04+ / Centos7+ ,部分Centos模板可能存在难以处理的编译问题,建议遇到编译问题时,请更换至其他系统模板
  • telegram 交流群:https://t.me/wulabing_v2ray
  • 群主仅提供极其有限的支持,如有问题可以询问群友
  • 每周日的凌晨3点,Nginx 会自动重启以配合证书的签发定时任务进行,在此期间,节点无法正常连接,预计持续时间为若干秒至两分钟

更新日志

更多内容请查看 CHANGELOG.md

2020-01-25

  • 修复 curl依赖确实
  • 添加 MT-proxy-go 安装代码,在此感谢 whunt1 的贡献
  • 修复 测试签发成功,正式签发失败,后续重装导致的跳过证书签发问题

鸣谢

证书

如果你已经拥有了你所使用域名的证书文件,可以将 crt 和 key 文件命名为 v2ray.crt v2ray.key 放在 /data 目录下(若目录不存在请先建目录),请注意证书文件权限及证书有效期,自定义证书有效期过期后请自行续签

脚本支持自动生成 let's encrypted 证书,有效期3个月,理论上自动生成的证书支持自动续签,自动续签功能有待检验

查看客户端配置

cat ~/v2ray_info.txt

V2ray 简介

  • V2Ray是一个优秀的开源网络代理工具,可以帮助你畅爽体验互联网,目前已经全平台支持Windows、Mac、Android、IOS、Linux等操作系统的使用。
  • 本脚本的另一个分支版本(Use Host)地址: https://github.com/dylanbai8/V2Ray_ws-tls_Website_onekey 请根据需求进行选择 该作者可能已停止维护
  • 本脚本为一键完全配置脚本,在所有流程正常运行完毕后,直接按照输出结果设置客户端即可使用
  • 请注意:我们依然强烈建议你全方面的了解整个程序的工作流程及原理

建议单服务器仅搭建单个代理

  • 本脚本默认安装最新版本的V2ray core
  • V2ray core 目前最新版本为 4.21.3(同时请注意客户端 core 的同步更新,需要保证客户端内核版本 >= 服务端内核版本)
  • 建议使用默认的443端口作为连接端口
  • 伪装内容可自行替换。

V2ray core 更新方式

执行: bash <(curl -L -s https://install.direct/go.sh)

( 来源参考 :V2ray官方说明

  • 如果为最新版本,会输出提示并停止安装。否则会自动更新
  • 未来会将相关内容集成到本脚本中并进行交互式操作更新

注意事项

  • 推荐在纯净环境下使用本脚本,如果你是新手,请不要使用Centos系统。
  • 在尝试本脚本确实可用之前,请不要将本程序应用于生产环境中。
  • 该程序依赖 Nginx 实现相关功能,请使用 LNMP 或其他类似携带 Nginx 脚本安装过 Nginx 的用户特别留意,使用本脚本可能会导致无法预知的错误(未测试,若存在,后续版本可能会处理本问题)。
  • V2Ray 的部分功能依赖于系统时间,请确保您使用V2RAY程序的系统 UTC 时间误差在三分钟之内,时区无关。
  • 本 bash 依赖于 V2ray 官方安装脚本acme.sh 工作。
  • Centos 系统用户请预先在防火墙中放行程序相关端口(默认:80,443)

准备工作

  • 准备一个域名,并将A记录添加好。
  • V2ray官方说明,了解 TLS WebSocket 及 V2ray 相关信息
  • 安装好 curl

安装/更新方式(h2 和 ws 版本已合并)

Vmess+websocket+TLS+Nginx+Website

wget -N --no-check-certificate -q -O install.sh "https://raw.githubusercontent.com/wulabing/V2Ray_ws-tls_bash_onekey/master/install.sh" && chmod +x install.sh && bash install.sh

启动方式

启动 V2ray:systemctl start v2ray

停止 V2ray:systemctl stop v2ray

启动 Nginx:systemctl start nginx

停止 Nginx:systemctl stop nginx

相关目录

Web 目录:/home/wwwroot/3DCEList

V2ray 服务端配置:/etc/v2ray/config.json

V2ray 客户端配置: ~/v2ray_info.txt

Nginx 目录: /etc/nginx

证书文件: /data/v2ray.key 和 /data/v2ray.crt

v2ray_ws-tls_bash_onekey's People

Contributors

huangqian8 avatar mr-xn avatar wulabing avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.