Code Monkey home page Code Monkey logo

v2ray4flyio's Introduction

🈲 紧急提醒 ❗❗❗

2022年4月27日 03:59 收到 Fly.io 官方邮件,邮件正文和 Issue #22 中的一致。

邮件解读:Fly.io 免费版不允许安装 V2Ray 此类代理,只能用于 Web 应用。只有付费套餐才能用,要是还想用,那就得升级套餐,而且人家还给自动升级到 10 美元、月。如果不想升级,那就得在 24 小时内删除应用。

如何应对?

  • 如果您准备用付费套餐(10 美元/月),可以无视此次提醒。

  • 但是如果您不准备付费,最好按照官方提示删除应用。如果没有及时删除,那等待你的只能是信用卡扣费账单啦。

    删除操作有两种:

    1. 浏览器打开 Web 控制台,点击进入对应应用,点击【Settings】标签,点击【Delete】按钮进行删除。
    2. 通过命令行进行操作,此操作需要在本地安装 flyctl 命令行并登录,之后允许命令 flyctl apps destroy [APP_NAME] 也能删除对应应用。

    不想删除的同学,根据 #22 那个朋友所说猜测:暂时官方应该只对香港的节点发警告了,可以将节点切到其他节点试试。

    此操作暂未测试证实,请慎重,不保证您一定躲过本次风波!!

    1. deploy.sh 文件第 5 行区域代码改为其他区域代码,区域代码请参考官方文档 https://fly.io/docs/reference/regions/
      REGION="hkg"
    2. 将最新代码提交触发再次构建。

!!!本仓库最开始只是为了 git clone 之后再 push 到个人仓库触发 Github Actions 自动构建的,没想到后来大家都直接 Fork 仓库,导致很多人提 Issue 说不会触发构建。

在此,本人统一回复下:Fork 后,配置完,最后也要 Push 一次代码才可触发构建

V2Ray4Fly.io

概述

通过 GitHub Actions 自动在 Fly.io 上部署 V2Ray

配置部署

  1. 先到 Fly.io 注册账号,注意:注册时要记得绑定信用卡,银联的就行
  2. GitHub Actions 增加FLY_API_TOKENAPP_NAMEUUID三个安全字段
  1. 推送代码即可触发部署,另外已设置每月一号四点(UTC)自动部署

客户端连接

  • 协议(protocol) - vmess
  • 地址(address) - [APP_NAME].fly.dev
  • 端口(port) - 443
  • 用户ID(id) - [UUID]
  • 额外ID(alterId) - 0 (!!!)
  • 传输协议(network) - ws
  • 底层传输安全(tls) - tls
{
  "inbounds": [],
  "outbounds": [
    {
      "tag": "proxy",
      "protocol": "vmess",
      "settings": {
        "vnext": [
          {
            "address": "[APP_NAME].fly.dev",
            "port": 443,
            "users": [
              {
                "id": "[UUID]",
                "alterId": 0,
                "security": "auto"
              }
            ]
          }
        ]
      },
      "streamSettings": {
        "network": "ws",
        "security": "tls",
        "tlsSettings": {
          "allowInsecure": true
        }
      }
    }
  ]
}

参考

v2ray4flyio's People

Contributors

lyz7805 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

v2ray4flyio's Issues

action报错

Error failed to fetch an image or build from source: error rendering push status stream: name unknown: app repository not found
这是为啥

VLESS问题

请问,单纯修改v2ray.sh中的inbounds代码,无法启用VLESS协议,请问还有哪里需要修改吗?
"inbounds": [
{
"listen": "0.0.0.0",
"port": 443,
"protocol": "vless",
"settings": {
"clients": [
{
"id": "$UUID",
}
],
"decryption": "none"
},
"streamSettings": {
"network": "ws",
"wsSettings": {
"path": "/xxxxx"
}
}
}
],

部署失败!!!

##[debug]Evaluating condition for step: 'Deploy'
##[debug]Evaluating: success()
##[debug]Evaluating success:
##[debug]=> true
##[debug]Result: true
##[debug]Starting: Deploy
##[debug]Loading inputs
##[debug]Loading env
Run sh ./deploy.sh
##[debug]/usr/bin/bash -e /home/runner/work/_temp/6f387e78-f129-45c0-ae9a-9b5d8a65dd50.sh
Could not resolve command - flyctl. So, install flyctl first.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 1475 0 1475 0 0 26818 0 --:--:-- --:--:-- --:--:-- 26818
#=#=#

################################# 46.1%
######################################################################## 100.0%
set channel to shell
flyctl was installed successfully to /usr/local/bin/flyctl
Run 'flyctl --help' to get started
The app has been created.
Next, create app config file - fly.toml.
Create app config file success.
Next, set app secrets and regions.
Error Could not find App "***"

Error Could not find App "***"

App secrets and regions set success. Next, deploy the app.
==> Verifying app config
--> Verified app config
==> Building image
==> Creating build context
--> Creating build context done
==> Building image with Docker
--> docker host: 20.10.17+azure-3 linux x86_64
Sending build context to Docker daemon 91.14kB

Step 1/5 : FROM alpine:latest
latest: Pulling from library/alpine
213ec9aee27d: Already exists
Digest: sha256:bc41182d7ef5ffc53a40b044e725193bc10142a1243f395ee852a8d9730fc2ad
Status: Downloaded newer image for alpine:latest
---> 9c6f07244728
Step 2/5 : WORKDIR /root
---> Running in d98f74a33dcc
---> eef457ba65fd
Step 3/5 : COPY v2ray.sh /root/v2ray.sh
---> a233184b337e
Step 4/5 : RUN set -ex && apk add --no-cache tzdata openssl ca-certificates && mkdir -p /etc/v2ray /usr/local/share/v2ray /var/log/v2ray && chmod +x /root/v2ray.sh
---> Running in 5bfafeeab110

Error: Process completed with exit code 1.
##[debug]Finishing: Deploy

invalid user: VMessAEAD is enforced and a non VMessAEAD connection is received

Error Log:

2022-01-17T09:03:42.168 app[629f0226] sin [info] 2022/01/17 09:03:42 1.***.***.***:0 rejected common/drain: common/drain: unable to drain connection > websocket: close 1000 (normal) > proxy/vmess/encoding: invalid user: VMessAEAD is enforced and a non VMessAEAD connection is received. You can still disable this security feature with environment variable v2ray.vmess.aead.forced = false . You will not be able to enable legacy header workaround in the future.

搭建在香港的节点被邮件警告即将收费

搭建在香港的节点被邮件警告,说搭建代理应用是收费服务,24小时之内不删除应用的话将扣取费用。原文如下:

[Fly.io] flhk requires a paid plan

Hello! You are receiving this email because you deployed an application (flhk.fly.dev) that is not allowed in our free tier. Our free tier is intended only for web applications. Proxy servers, TOR exit nodes, and BitTorrent apps are not allowed.

These kinds of applications are allowed on our paid plans. If you want to keep using this application on Fly.io, we will automatically upgrade you to our $10/month "Advanced" plan. If you would prefer not to upgrade, you have 24 hours to delete your application before you are charged. This is the command you need:

flyctl apps destroy flhk

Please let us know if you have any questions!

-Kurt

同一账号下还有美国节点,尚为收到警告。索性我全部删掉了。

执行到第三部的时候报错

Error No access token available. Please login with 'flyctl auth login' 通过网页版获取或者本地获取的密钥替换main.yml里面的FLY_API_TOKEN出现前面的错误,求大佬指点

第三步报错

已经用了4月22号的deploy代码

仍然报错

==> Pushing image to fly
The push refers to repository [registry.fly.io/***]
708e5f72997d: Preparing
fcde3496feb4: Preparing
4fc242d58285: Preparing
Error failed to fetch an image or build from source: error rendering push status stream: name unknown: app repository not found

Error: Process completed with exit code 1.

初次运行报错

Create app failed.

Error: Process completed with exit code 1.

flyio是还要绑卡才行吗?

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.