Git Product home page Git Product logo

v2fly-cf's Issues

Cloudflare Workers

addEventListener(
  "fetch", event => {
    let url = new URL(event.request.url);
    url.host = "v2ws-comedic-dingo-ka.mybluemix.net";
    let request = new Request(url, event.request);
    event.respondWith(
      fetch(request)
    )
  }
)

每周自动部署最新版本v2ray到 IBM Cloud

操作不难,但不会写教程;
欢迎大神PR 或者 发博客分享介绍,可以把文章链接贴到readme

简要说明:

  1. fork 项目,点击Actions启用
    https://github.com/tlmoe/v2fly-cf


  1. 添加 Secrets
  • CF_USER_IBM //账号
  • CF_PASSWORD_IBM //密码
  • CF_CONFIG_URL_IBM //服务端配置文件网址,可配置UUID https://git.io/JJOUG
  • #3
    添加了三个Secrets
    CF_UUID_IBM #自行找UUID生成器生成
    CF_ORG_IBM #组织名
    CF_SPACE_IBM #空间名
    #弃用Secrets CF_CONFIG_URL_IBM

组织和空间 名称: https://cloud.ibm.com/account/cloud-foundry

  • cf_org: AwesomeApp
  • cf_space: Development
  1. 修改.github/workflows/deploy-to-ibm.yml,
  • IBM免费额度 256M
  • 如果是部署到伦敦节点,修改api地址 cf_api: api.eu-gb.cf.cloud.ibm.com
  • 建议修改schedule ,cron 格式参考 https://tool.lu/crontab/
  1. 修改 manifest-ibm.yml

  2. 登录ibm,查看项目域名

  3. 登录cloudflare,配置workers,可参考IBMYES

MIT License

找不到组织和空间名称

设置了
CF_ORG_IBM
CF_PASSWORD_IBM
CF_SPACE_IBM
CF_USER_IBM
CF_UUID_IBM
组织名字 和空间名称也分别设置了 但还是一直报错找不到组织和空间
求大佬帮忙看看问题出在哪里 谢谢!

Run citizen-of-planet-earth/cf-cli-action@v1
/usr/bin/docker run --name c201c2db9a54d4eb4617b6455ca6140120b7_4889b1 --label 87c201 --workdir /github/workspace --rm -e INPUT_CF_API -e INPUT_CF_USERNAME -e INPUT_CF_PASSWORD -e INPUT_CF_ORG -e INPUT_CF_SPACE -e INPUT_COMMAND -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_SERVER_URL -e GITHUB_API_URL -e GITHUB_GRAPHQL_URL -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e RUNNER_OS -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/auto-v2ray-/auto-v2ray-":"/github/workspace" 87c201:c2db9a54d4eb4617b6455ca6140120b7 "push v2ws -f manifest-ibm.yml
"
Setting api endpoint to https://api.us-south.cf.cloud.ibm.com...
OK

api endpoint: https://api.us-south.cf.cloud.ibm.com
api version: 2.148.0
Not logged in. Use 'cf login' or 'cf login --sso' to log in.
API endpoint: https://api.us-south.cf.cloud.ibm.com
Authenticating...
OK

Use 'cf target' to view or set your target org and space.
Organization '***' not found.
FAILED
No org targeted, use 'cf target -o ORG' to target an org.
FAILED

IBM部署失败

提示APP源码无效

"
Setting api endpoint to https://api.us-south.cf.cloud.ibm.com...
OK

api endpoint:   https://api.us-south.cf.cloud.ibm.com
api version:    2.153.0
Not logged in. Use 'cf login' or 'cf login --sso' to log in.
API endpoint: https://api.us-south.cf.cloud.ibm.com
Authenticating...
OK

Use 'cf target' to view or set your target org and space.
api endpoint:   https://api.us-south.cf.cloud.ibm.com
api version:    2.153.0
user:           ***
org:            ***
space:          ***
Pushing from manifest to org *** / space *** as ***...
Using manifest file /github/workspace/manifest-ibm.yml
Getting app info...
Updating app with these attributes...
  name:                v2ws
  path:                /github/workspace
  buildpacks:
    binary_buildpack
  command:             ./v2ray
  disk quota:          128M
  health check type:   port
  instances:           1
  memory:              128M
  stack:               cflinuxfs3
  routes:
    v2ws-grumpy-crane-jy.mybluemix.net

Updating app v2ws...
Mapping routes...
Comparing local files to remote cache...
Packaging files to upload...
Uploading files...

 0 B / 3.71 KiB    0.00%
The app is invalid: Invalid application source code found
 3.71 KiB / 3.71 KiB  100.00%FAILED

连接服务器报错500 Error

workflow运行成功,客户端连接的时候报下面错误
2020/09/09 17:46:57 [Warning] failed to handler mux client connection > v2ray.com/core/proxy/vmess/outbound: failed to find an available destination > v2ray.com/core/common/retry: [v2ray.com/core/transport/internet/websocket: failed to dial WebSocket > v2ray.com/core/transport/internet/websocket: failed to dial to (wss://{我的应用名}.us-south.cf.appdomain.cloud/): 500 Error > websocket: bad handshake] > v2ray.com/core/common/retry: all retry attempts failed
对比了下IBMYes项目
IBMYes自动生成了uuid,websocket path 和vmess协议连接
我们uuid自己添加,websocket path是空的?
下面是我自己客户端配置
无标题

和在ibmcloud上同样的v2的配置在pws上失败

我自己注册了pws,然后app也创建成功,运行也成功。两个平台的所有配置都一样,但是就一个成功一个失败,然后试了ws外的h2,tcp都失败,不知道到底是什么原因。然后下面这是pws上的一条日志,其余的都是同样的重复的日志:$appurl - [2020-07-24T12:36:45.730265756Z] "GET /favicon.ico HTTP/1.1" 404 0 0 "$appurl" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36" "...:58512" "...:61118" x_forwarded_for:"..., ..." x_forwarded_proto:"https" vcap_request_id:"d85ec0be-7f95-4e66-63da-1ddfeedbffaa" response_time:0.006860 gorouter_time:0.000076 app_id:"c1691035-c0ae-47ba-8c81-b4a1c567e438" app_index:"0" x_cf_routererror:"-" x_b3_traceid:"116c09fd9b125e88" x_b3_spanid:"116c09fd9b125e88" x_b3_parentspanid:"-" b3:"116c09fd9b125e88-116c09fd9b125e88"

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.