Code Monkey home page Code Monkey logo

replit-v2ray's Introduction

Replit_V2Ray(请勿滥用)

原理

因为Replit放通了端口443,因此我们可以在端口443(https的标准端口)运行流协议为ws(它隐藏在http协议中)的V2ray并且成功连接到它

功能/优点

  1. 支持vmess,vless,trojan协议(shadowsocks因我个人技术不过关整不出来,用ws流协议监听了443端口但是客户端无法连接,服务端log日志无显示)
  2. 采用DoH的安全dns协议,避免有些网站不能访问(Replit的dns似乎是有意要屏蔽某些adult网站,换成公共dns就没问题了)
  3. 随机生成uuid及trojan密码
  4. 延迟低,速度快(我在广东这边测延迟是40多,真连接延迟是500多,速度可以跑满宽带,就是晚上有点拉跨不过速度也有个2MB/s)

教程

首先先Fork这个Repo

然后来到Replit主页,点击用户头像下面的Create蓝色框框

然后在弹出的窗口中点击"Import from Github"

然后Github URL选择你Fork的repo,Language选Bash,然后点击蓝色的"Import from Github"

等待它导入完毕后,点击顶部的Run

等待一下,看看Console中是否有出现UUID,如果有请记录下来。

然后,进入你的V2ray客户端,并参考以下来添加服务器

大功告成

可选步骤

如果遇到脚本执行失败,可将下列json代码导入Secret中(Edit raw JSON)

{
  "CONFIG_FILE_URI": "https://repl-assets.rd1017.top/config-all.json",
  "VMESS_SECURITY": "none",
  "CORE_FILE_NAME": "xray"
}

环境变量配置

在创建repl之前可以在Repo里的.env那里改;创建repl之后请到repl的Tools栏下面的Secrets项修改,修改完后记得停止再启动repl

变量 默认值 说明
V2RAY_CONFIG_FILE_URI https://replit-v2ray-dl.redball1017.gq/config-all.json V2ray/Xray配置文件下载地址,可自定义,但端口一定要为443,流协议一定要为ws否则无法连接
VMESS_SECURITY none vmess加密方式,可以为aes128-gcm,chacha20-poly1305,auto,none,zero
V2RAY_CORE_FILE_NAME xray V2ray可执行文件名,可以为v2ray,xray

replit-v2ray's People

Contributors

redball1017 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.