Coder Social home page Coder Social logo

v2ray-heroku

貌似新建的app有些需要科学访问,如果需要,请使用cloudflare worker CDN 套一层。

切换到最新的 VLESS 协议。具体客户端配置请看 config 章节。

v2ray-heroku 是我的主力 backup,我会日常维护它。加入或者修改一些我认为好的配置。但这一般会导致客户端配置需要些许修改。 不过具体配置都会体现在 详细 VLESS websocket 客户端配置

首先查看别人的 youtube 教程,了解怎么配置 v2ray-heroku。本项目使用最新 VLESS 协议,请在客户端配置选择 VLESS
详细 VLESS websocket 客户端配置

如果你还想自动化你的 heroku,请查看下面的教程。

本项目是包含,

  • 一键部署 V2ray 到 heroku。
  • 利用 Github action 实现 重新部署/停止/启动。
  • 支持多app和多账户 重新部署/停止/启动。
  • 利用 cloudflare CDN 进行加速。
项目Dockerfile是基于V2fly 官方镜像制作。仅仅增加生产配置文件的脚本。重新部署就可以更新到最新的v2ray。
基于官方镜像,这也是v2fly 推荐的做法。

保持安全最简单的方式就是,保持软件更新。

一键部署

Deploy

Github Actions 管理

请 Fork 本项目到自己的账户下。 Actions 需要以下 Secrets 才能正常工作,这些 Secrets 会被 workflow 中的 akhileshns/heroku-deploy 使用。

具体实现细节,请查看 workflow 配置文件.

Name Description
APP_NAME 就是你 heroku 项目的名字
EMAIL heroku 账户的 email
HEROKU_API_KEY heroku API key, 在 account 设置下可以找到
HEROKU_V2RAY_UUID V2rayUUID

请务必生成新的 UUID。使用已有的 UUID 会使自己 V2ray 暴露在危险之下。

PowerShell:

PS C:\Users\> New-Guid

Shell:

xxx@xxx:/mnt/c/Users/$ uuidgen

Github Secrets

路径

项目Setting-->Secrets

Secrets

Heroku API key

路径

heroku Account settings-->API key

Secrets

Github Actions 界面

Actions

Actions

重新部署

点击 Run workflow, 输入 deploy。 然后就会重新 deploy。

deploy

停止

点击 Run workflow, 输入 stop。 然后就会 stop,不在计入小时数。 stop

启动

点击 Run workflow, 输入 start。 然后就会启动。

start

建立 cloudflare worker (可选)

如果遇到创建的app在正常网络下不能访问,请尝试这个。

可以参考 开头的视频。代码如下。

addEventListener("fetch", (event) => {
  let url = new URL(event.request.url);
  url.hostname = "你的heroku的hostname";
  let request = new Request(url, event.request);
  event.respondWith(fetch(request));
});

为 worker 选择速度更快的 IP。 https://github.com/badafans/better-cloudflare-ip

使用 Environments 实现 多账户/多app Secrets 管理

文档介绍: https://docs.github.com/en/actions/deployment/using-environments-for-deployment

建立 Environments, 并添加 Secrets

  1. 创建 Environments Environments
  2. 添加 Secrets EnvironmentsSercet

输入环境名字

一定要确保环境名字是对的,要不然就会用主的Secrets。 EnvironmentsDeploy

VLESS websocket 客户端配置

JSON

"outbounds": [
        {
            "protocol": "vless",
            "settings": {
                "vnext": [
                    {
                        "address": "***.herokuapp.com", // heroku app URL 或者 cloudflare worker url/ip
                        "port": 443,
                        "users": [
                            {
                                "id": "", // 填写你的 UUID
                                "encryption": "none"
                            }
                        ]
                    }
                ]
            },
            "streamSettings": {
                "network": "ws",
                "security": "tls",
                "tlsSettings": {
                    "serverName": "***.herokuapp.com" // heroku app host 或者 cloudflare worker host
                }
              }
          }
    ]

v2rayN

换成 V2rayN

别人的配置教程参考,https://v2raytech.com/v2rayn-config-tutorial/.

v2rayN

love7899's Projects

-1panel icon -1panel

现代化、开源的 Linux 服务器运维管理面板。

cfwarp-pro icon cfwarp-pro

仅支持"内核集成"模式的WARP多功能脚本(支持ARM/X86):纯IPV4、纯IPV6、双栈IPV4+IPV6 各种VPS都可用。目前已测试通过oracle(甲骨文云),gpc(谷歌云),buyvm,racknerd,virmach,vultr,aws(亚马逊云),azure(微软云),bandwagonhost(搬瓦工)……欢迎大家补充反馈!

doprax-xray icon doprax-xray

Doprax一键五协议共存脚本:Xray内核,支持vless,vmess,trojan,shadowsocks,socks五协议同时在线,支持自定义伪装网站,CDN自选IP可提速

freenom icon freenom

Freenom域名自动续期。Freenom domain name renews automatically.

hysteria- icon hysteria-

Hysteria is a feature-packed proxy & relay tool optimized for lossy, unstable connections (e.g. satellite networks, congested public Wi-Fi, connecting to foreign servers from China)

love7899 icon love7899

利用github actions 实现v2ray-heroku的部署,停止,和启动

luci-app-vssr icon luci-app-vssr

HelloWorld是一个以用户最佳主观体验为导向的插件,它支持多种主流协议和多种自定义视频分流服务,拥有精美的操作界面,并配上直观的节点信息。

nodejs_wx_aipay_api icon nodejs_wx_aipay_api

微信支付宝个人免签收款Api系统,有了它对接再也不用担心我的业务不能支付了

novel-plus icon novel-plus

小说精品屋-plus是一个多端(PC、WAP)阅读、功能完善的原创文学CMS系统,由前台门户系统、作家后台管理系统、平台后台管理系统、爬虫管理系统等多个子系统构成,支持多模版、会员充值、订阅模式、新闻发布和实时统计报表等功能,新书自动入库,老书自动更新。

onenav icon onenav

使用PHP + SQLite 3开发的书签管理系统,将浏览器书签集中式管理,做到一处部署,随处访问。

v2-ui icon v2-ui

支持多协议多用户的 v2ray 面板,Support multi-protocol multi-user v2ray panel

v2ray-heroku icon v2ray-heroku

用于在 Heroku 上部署 V2Ray Websocket,本项目不宜做为长期使用之对策。

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.