tlmoe / v2fly-cf Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Staging app and tracing logs...
You have exceeded your organization's memory limit: app requested more memory than available
FAILED
现在好像是随机生成的,例如楼下这种:v2ws-comedic-dingo-ka.mybluemix.net
能通过命令在部署时自定义一个网址吗?
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)
)
}
)
提示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
设置了
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
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是空的?
下面是我自己客户端配置
操作不难,但不会写教程;
欢迎大神PR 或者 发博客分享介绍,可以把文章链接贴到readme
简要说明:
组织和空间 名称: https://cloud.ibm.com/account/cloud-foundry
修改 manifest-ibm.yml
登录ibm,查看项目域名
登录cloudflare,配置workers,可参考IBMYES
MIT License
我自己注册了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"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.